bioformats icon indicating copy to clipboard operation
bioformats copied to clipboard

DICOM: fix certain types of data with multiple optical paths

Open melissalinkert opened this issue 2 years ago • 4 comments

See https://forum.image.sc/t/dicom-folder-to-ometiff/61402/10. Test dataset is in inbox/imagesc-61402.

Without this PR, showinf -nopix -noflat on any of the files will show a pyramid with 5 resolutions and 12 Z sections. Examining the files with dcdump indicates that there should be 12 channels, not 12 Z sections.

showinf -nopix -noflat with this PR should correctly detect 12 channels and 1 Z section. Reading any of the resolutions with showinf -noflat -resolution r should successfully read all 12 channels, with obvious data in each channel.

Keeping this as a draft for the moment, since I haven't yet checked this against any of our other data.

melissalinkert avatar Oct 04 '22 00:10 melissalinkert

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/dicom-folder-to-ometiff/61402/16

imagesc-bot avatar Oct 04 '22 00:10 imagesc-bot

Repo test failures: https://merge-ci.openmicroscopy.org/jenkins/job/BIOFORMATS-test-folder/lastFailedBuild/consoleFull

dgault avatar Oct 05 '22 08:10 dgault

Sorry, I didn't realize draft PRs would still be included in the builds. Adding the exclude label for now.

melissalinkert avatar Oct 05 '22 13:10 melissalinkert

@melissalinkert if you need any help with this in terms of understanding the layout of the data, or validating any of your assumptions, please let us know - @dclunie is happy to help!

fedorov avatar Oct 07 '22 13:10 fedorov

I believe this is now working correctly, so reincluding in the builds for verification.

The last issue was a subtle problem with how some edge tiles are handled, which should be fixed with 3881f0c. That requires a configuration change for the macro and thumbnail images in CPTAC-LSCC_C3L-00965-26_PixelMedConvertedSVSSuppliedPyramid, but showinf -noflat -crop 0,0,256,256 -series 1 with and without this PR will confirm that the previous behavior was incorrect.

melissalinkert avatar Oct 14 '22 21:10 melissalinkert

Tests are passing with this change included: https://merge-ci.openmicroscopy.org/jenkins/job/BIOFORMATS-test-repo/1301/

melissalinkert avatar Oct 15 '22 16:10 melissalinkert

@melissalinkert are those builds available for download so that the user who reported the problem in this thread could test and confirm this works for them?

fedorov avatar Oct 31 '22 14:10 fedorov