Hello, I am getting strange results trying to find the number of spatial dimensions of an image.
For the FluorescentCells.tif image found in File -> Open Samples in the Fiji dialog, calling the following gives an unexpected result:
Load the input image as a DefaultDataset
input_image = ij.io().open(f)
Get dimensions of image
dimensions = input_image.numDimensions()
returns dimensions == 3 even though it is a 2D image (but with 3 color channels).
Are the multiple color channels the 3rd dimension?
Calling the same functions on Blobs.gif (2D, single channel) returns dimensions == 2
How can i distinguish between an image with 3 spatial dimensions (xyz) and a 2D image with multiple color channels?