-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StarDist loses image calibration #10
Comments
Hi @tischi, sorry for taking so long to reply. I'm not sure it's that easy, since the output (label) images will typically have a different data type and may have different numbers of channels as compare to the input image. One could maybe selectively copy the relevant calibration parameters? Furthermore, we use ImageJ2 |
It think it is that easy 😄 , because the imagePlus calibration does not care about the number of channels and data-type.
But, I strongly assume that to finally display the image you do something like:
Do you? |
Are you sure? Where can I find out what can be stored in the calibration data?
No, we return |
I see, some SciJava magic that's converting to and from |
The You can set the image calibration by setting or modifying the dataset's Maybe @ctrueden has an illustrative code example somewhere on gist already? |
I'm assuming you already do this in your script that calls StarDist and don't actually have a problem with losing image calibration? I.e. this feature would be nice to have, but isn't an actual problem for you? |
I don't call call StarDist via a script but via the GUI. So it is an actual problem. I think this goes beyond "nice to have". I would expect from a good Fiji plugin that it passes on the image calibration onto the output images 😄 |
I just refactored the code to work more generally. I'd consider this done if there are no objections. |
Did you already upload those changes to the Fiji plugin? We recently tried and it seems to still loose the calibration. |
Sure, fully understood. Thanks for still working on this! |
@uschmidt83 @maweigert @lacan @haesleinhuepf
When running StarDist in Fiji on an image the output image has lost the calibration.
It would be very nice to have the same calibration as the input image.
I think it could be as easy as:
The text was updated successfully, but these errors were encountered: