Open DorianKauffmann opened 8 months ago
Hi @DorianKauffmann ,
Thank you for your positive feedback on BatchConvert and the detailed description of the issue. I can replicate the behaviour using several example images in different formats. The channel information of the original dataset is retained in the metadata of the extracted series.
It appears that the root cause lies within the Bio-Formats tools that are wrapped by BatchConvert for conversion. I will investigate further to clarify if this behaviour of Bio-Formats is intentional or a potential bug. In the meanwhile I will also try to figure out a temporary fix in BatchConvert.
Cheers, Bugra
Hello Bugra, So great, thank you very much !
Best, Dorian
Le mer. 10 janv. 2024 à 21:23, bugraoezdemir @.***> a écrit :
Hi @DorianKauffmann https://github.com/DorianKauffmann ,
Thank you for your positive feedback on BatchConvert and the detailed description of the issue. I can replicate the behaviour using several example images in different formats. The channel information of the original dataset is retained in the metadata of the extracted series.
It appears that the root cause lies within the Bio-Formats tools that are wrapped by BatchConvert for conversion. I will investigate further to clarify if this behaviour of Bio-Formats is intentional or a potential bug. In the meanwhile I will also try to figure out a temporary fix in BatchConvert.
Cheers, Bugra
— Reply to this email directly, view it on GitHub https://github.com/Euro-BioImaging/BatchConvert/issues/24#issuecomment-1885660648, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUGQ5D5YTLXSEHQAEQ3MXT3YN32E5AVCNFSM6AAAAABBTQLVRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBVGY3DANRUHA . You are receiving this because you were mentioned.Message ID: @.***>
Hello, Thanks for your work on BatchConvert, which is very useful and practical!
For my work in France-BioImaging, I need to convert several multichannel images into single-channel ome.tiff images - for each channel of the original images. So I created this python code using your documentation; to convert here only the first channel of an example image).
<Dimensions [T: 1, C: 3, Z: 21, Y: 512, X: 512]>
But after running this code and converting my 3-channel images I got a Value error about channel sizes (idem with some imread)
The full error message below:
Suprisingly, when using the BioformatReader, I can have access to the new monocanal image (but it takes much more time to open it).
<Dimensions [T: 1, C: 1, Z: 21, Y: 512, X: 512]>
Then I checked the ome-type xml metadata file and saw that the sizeC is indeed 1 but, in Pixels, the information for the 3 channels remains instead of just the first. It therefore seems that there was an error at this level during the conversion.
It therefore seems that there was an error at this level during the conversion.
The full xml file (as .txt) here : Info_HeLa_Mitotrack-647_BrField_Hoechst_sample-1_001_visit_1.txt
As I can't upload .dv and ome.tiff images on GIthub, don't hesitate to contact me if you want the input and output image.
Thank you for all, Dorian