项目作者: fagossa

项目描述 :
Front propagation algorithm example in scala
高级语言: Scala
项目地址: git://github.com/fagossa/xke-image-procesing.git
创建时间: 2016-02-14T20:41:16Z
项目社区:https://github.com/fagossa/xke-image-procesing

开源协议:

下载


Functional Image processing

REPL

I don’t know what the hell is SBT!! ¯¯\(ツ)/¯¯

Just type this

  1. > ./activator

C’mon! I already have everything installed

  1. > sbt

Testing

How do I run the test?

Once in the REPL

  1. > test
  2. > testOnly fr.xebia.image.*
  3. > testOnly fr.xebia.image.core.RawImageSpec
  4. > ~testOnly fr.xebia.image.core.RawImageSpec

You are good to go!!!


Working with the code

  1. > testOnly fr.xebia.image.core.RawImageSpec

TODO 01

Get the first element that matches following a left-right / up-down strategy.

TODO 02

Replace the pixels at the specified position by the a pixel value.

TODO 03

Get the neighbors from a specified pixel.

  1. > testOnly fr.xebia.image.core.ImageProcessingFunctorSpec

TODO 04

Add the missing parts of the front propagation algorithm.

TODO 05

Count connected elements from several fronts.