sami-badawi / shapelogic-scala

Generic computer vision in Scala
http://shapelogicscala.org/
MIT License
13 stars 3 forks source link

image threasholding script #1

Closed sami-badawi closed 7 years ago

sami-badawi commented 7 years ago

Just to test that the image saver is working

sami-badawi commented 7 years ago

Created script for this:

sbt 'run-main org.shapelogic.sc.script.Threshold -i "image/3black_dots.png"'

There is still a bug in this

sami-badawi commented 7 years ago

It is now working except for the fact that bytes are signed so high values become negative. I need a generic solution for this that works on all numeric types. This is a little tricky.

sami-badawi commented 7 years ago

Got a fix for threshold operation working. But not the elegant solution that I tried to get to work

sami-badawi commented 7 years ago

Works on command line and in GUI. Code is generic but only byte version is linked up