imglib / imglib2-ij

Translation between ImgLib & ImageJ data structures (both 1.x and 2)
Other
4 stars 8 forks source link

Added transformation of BitType into 8-bit ImagePlus #9

Closed cmongis closed 8 years ago

cmongis commented 8 years ago

For some reason, Bit images where transformed into 16-bit images. I changed the ImageJFunction.wrap method so it transforms BitTypes into 8-Bit ImagePlus (common binary type of IJ1). BitTypes of value "True" are mapped to the byte value 255.

tpietzsch commented 8 years ago

@cmongis Good catch.

Could you please format your changes with the imglib2 code style? You can find an formatter.xml file for Eclipse here https://github.com/imglib/imglib2/blob/master/doc/imglib2-eclipse-mars-clean-up-formatter-style.xml

cmongis commented 8 years ago

... I used Netbeans ... I will see what I can do

cmongis commented 8 years ago

I found a plugin but it tend to reformat the whole file and look like I modified the whole thing. It's really disturbing. I push it nevertheless.

tpietzsch commented 8 years ago

Thank you very much. It looks like the ImageJFunctions wasn't formatted with the imglib2 style before... Sorry about the confusion.

tpietzsch commented 8 years ago

@cmongis I just released imglib2-ij-2.0.0-beta-34 with your fix