@stelfrich Thanks for the explanation.
By the way, there is another op named scale
, and it seems that this op doesn’t need to call checkInput(IterableInterval)
explicitly like normalizeScale
op.
However, my code uses scale
op seems not work properly:
ij = new ImageJ()
input = ij.scifio().datasetIO().open("http://samples.fiji.sc/tutorials/DrosophilaWing.tif").getImgPlus()
converted = ij.op().convert().float32(input)
dog = ij.op().filter().dog(converted, 1.0, 1.25)
scale_op = ij.op().op("convert.scale", input.firstElement(), dog.firstElement())
output = ij.op().create().img(input, new UnsignedByteType());
ij.op().convert().imageType(output, dog, scale_op)
It is a bit strange that the output image has all the same pixel value. I think even the the output isn’t corect, the pixel value of the output should be different.
What’s the different between scale
op and normalizeScale
op?