-
Notifications
You must be signed in to change notification settings - Fork 8
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
Supported data types #85
Comments
To be more precise, this is a data range and not a data type issue; the problem is mainly that the mobie viewer does not handle negative values well because of underlying functionality in BDV. |
If we provide the range in the view definition (which we do), couldn't a potential (even negative) offset be applied to simply always have 0 as starting value? |
I just tried converting the data to N5 using the Fiji-Plugin and confirm that the data type stays float32 and BDV cannot handle it because the intensity range is limited to being positive and integers. (data range in my normalized reconstruction is roughly: -0.002 to +0.002) |
@martinschorb do you have such an image for me that I could try to open? |
|
I mean one that has been converted N5 or OME-Zarr. |
In fact, to really test this it would have to be an image within a MoBIE project. Do you have this? |
|
not yet, because I got stuck during Constantin's validation steps (re data range). |
OK, I guess could still try with the |
These are reconstructed X-ray tomograms from HH, so we expect loads of this type of data coming in in the future. |
One can open it in MoBIE, but clicking the
I will investigate more later today. |
I can make it work within MoBIE: The question is how to set the maximal range of the contrast limit sliders. I am using this code right now:
Does that make sense? The last two lines I mean? Is a factor of 3 a good idea? If people want to change beyond Hmm, I should probably also limit by the data type (on top of this). |
@constantinpape @K-Meech would be also good to have your opinion on the above question. |
is this I guess there you should capture most of the intensity range (for this type of datasets). Then, a factor of 3 is already pretty generous (I would maybe go for 1 instead). The OME-Zarr metadata does not (yet?) contain a global min/max that we could read, correct? |
Initially this is taken from dataset.json, and this is populated from the current contrast limits in Fiji when saving the data (when using the ProjectCreator). I do not know how @constantinpape fills those values in python.
OK, let's try factor 1
Not yet, and there is a discussion in one of the issues, and I think the consensus was that that iot should only be an optional field, because for a distributed PB sized data set it may be hard to get those values 😄 |
Here you can try to help that your wishes come true (whatever they are). |
I made a PR to better support B&C settings of float images. We can merge once everyone's happy. |
I am a bit confused by this question and the ensuing discussions. These values should be read from
By default I am using I think that the crucial question is whether we can allow negative values for the contrast limits. I don't mind this at all; it's no issue on the python side and simple to change in the spec. And as far as I understand the discussion here it's also possible in MoBIE-Fiji now. |
It makes total sense to take the contrast limits from the respective So the question would be more on the creator's side (when creating the view) to fetch these values from existing metadata or, when doing the conversion to a MoBIE data format, to provide some means of extracting them during the conversion. The conceptual issue I have here: |
These are actually three different things (see also ome/ngff#78).
|
Short summary of meeting with @martinschorb and @tischi :
I will make the spec change and ping you @martinschorb once it's ready to use |
@martinschorb you can set arbitrary contrast limits now, but you first need to clear the local copy of the spec:
Let me know if you run into any more issues with the project creation. |
I merged the mobie-viewer-fiji PR. |
Yes, sounds good. @martinschorb if there are any more issues with the python creator just raise them in |
We should aim making the supported data types consistent across MoBIE tools and NGFF.
originated from: mobie/mobie-utils-python#42 (comment)
The text was updated successfully, but these errors were encountered: