Closed carshadi closed 5 years ago
As an addendum, running this op on Blobs.gif (2D single channel) runs as expected with only pixel width and height as the 2 elements of the spacing array.
@gselzer Can you please investigate this?
Hi @ctrueden and @carshadi,
I'm sorry that you are having trouble with the filter. Unfortunately this particular filter only works on grayscale images (See this javadoc) (@ctrueden is there somewhere else that we should be putting this information?) Within ImageJ-Ops there is no way to specify that the input only has two spatial dimensions, and because of this the Op
assumes that if you pass through an image with three dimensions, all three of those dimensions are spatial. Furthermore, even if the Op
knew it was an RGB image, the colors would mean little since there is really no standardized meaning to color as far as vessel analysis goes (i.e. different imaging techniques will show different colors) Thus I cannot recommend a spacing
value for you.
You can, however, collapse the third dimension of your image down through some grayscaling process, which would allow the filter to work as expected. You can find help doing this on the image.sc forum. Let me know if you have any other questions!
Best,
Gabe
I see, makes sense.
Thanks for your help!
I am having an issue running the "frangiVesselness" OP on a 2D image with 3 color channels. The image is "FluorescentCells.tif" found in the Fiji samples. Since the image has 2 spatial dimensions, i would expect that the
spacing
parameter would only require the pixel width and height. However, inputting just these two values forspacing
produces an error when running the Frangi OP (which is absolved by adding a third value to the spacing array):Steps to reproduce:
Adding a third value to
spacing
avoids this error and the plugin runs successfully. My question is: what should this third value be for an image with 2 spatial dimensions? The average "scale" of the channel dimension?print(float_input.axis(2).scale()) #output: 1.0
I am somewhat confused since the plugin page https://imagej.net/Frangi implies that this value should be pixel depth, which i would think is absent in a 2D image.