You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Contrast limits provided to init_array should be in format of either (end, max, min, start) or (start, end)
Document how contrast limits should be formatted. It would be more intuitive to format the len=4 tuple as (min, max, start, end)
Right now create_channel_dict assumed that the data is float32 and sets max to 65535. It would be good to match that to the data type such that, for example, the default value for uint8 data would be 256
The text was updated successfully, but these errors were encountered:
I think I like the user to define the (start, end) tuple and then the writer will automatically infer the min/max based on the datatype. Do you see a need to specify the min/max yourself? I suppose this could come into play when dealing with float data.
Perhaps another option would be to add an optional min/max tuple argument?
I sometimes deal with 12-bit data that is saved as uint16. In that case it may be hard to infer that the data is 12-bit just from the .tif stack. You're also right that this can get tricky when dealing with float32 data. I think formatting that tuple as either (start, end) or (start, end, min, max) should work. If the tuple is len=2 then we can infer min/max based on the data range
init_array
should be in format of either(end, max, min, start)
or(start, end)
(min, max, start, end)
create_channel_dict
assumed that the data is float32 and setsmax
to 65535. It would be good to match that to the data type such that, for example, the default value for uint8 data would be 256The text was updated successfully, but these errors were encountered: