Front propagation algorithm example in scala
Just type this
> ./activator
> sbt
Once in the REPL
> test
> testOnly fr.xebia.image.*
> testOnly fr.xebia.image.core.RawImageSpec
> ~testOnly fr.xebia.image.core.RawImageSpec
You are good to go!!!
> testOnly fr.xebia.image.core.RawImageSpec
01
Get the first element that matches following a left-right
/ up-down strategy
.
02
Replace the pixels at the specified position by the a pixel value.
03
Get the neighbors from a specified pixel.
> testOnly fr.xebia.image.core.ImageProcessingFunctorSpec
04
Add the missing parts of the front propagation algorithm.
05
Count connected elements from several fronts.