imagej / imagej-ops

ImageJ Ops: "Write once, run anywhere" image processing
https://imagej.net/libs/imagej-ops
BSD 2-Clause "Simplified" License
88 stars 42 forks source link

Allow copying/converting BoolType images to BitType images #431

Open haesleinhuepf opened 8 years ago

haesleinhuepf commented 8 years ago

This is not possible at the moment, because BoolType is no NativeType.

dietzc commented 8 years ago

In general we should make sure that Copy operations from T to V work. @haesleinhuepf it should work if you, prior to copying, create your own output with ops().create().img(interval, new BitType()) and pass it to the copy. Anyway, the framework should be able to figure it out on its own.