Skip to content
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

Dicom with z-sections #99

Open
jburel opened this issue Jun 5, 2018 · 2 comments
Open

Dicom with z-sections #99

jburel opened this issue Jun 5, 2018 · 2 comments
Labels

Comments

@jburel
Copy link
Contributor

jburel commented Jun 5, 2018

Tried to open a Dicom file with 32 planes and one timepoint

[ERROR] Module threw exception
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Could not open a plane for the given dimensions
	at net.imglib2.cache.util.CacheAsUncheckedCacheAdapter.get(CacheAsUncheckedCacheAdapter.java:32)
	at net.imglib2.img.cell.LazyCellImg$LazyCells.get(LazyCellImg.java:104)
	at net.imglib2.img.list.AbstractLongListImg$LongListCursor.get(AbstractLongListImg.java:98)
	at net.imglib2.img.cell.CellCursor.getCell(CellCursor.java:94)
	at net.imglib2.img.cell.CellCursor.moveToNextCell(CellCursor.java:182)
	at net.imglib2.img.cell.CellCursor.reset(CellCursor.java:152)
	at net.imglib2.img.cell.CellCursor.<init>(CellCursor.java:88)
	at net.imglib2.img.cell.AbstractCellImg.cursor(AbstractCellImg.java:92)
	at net.imglib2.img.cell.AbstractCellImg.cursor(AbstractCellImg.java:51)
	at net.imglib2.img.AbstractImg.firstElement(AbstractImg.java:81)
	at net.imagej.ImgPlus.firstElement(ImgPlus.java:276)
	at net.imagej.DefaultDataset.getType(DefaultDataset.java:220)
	at net.imagej.DefaultDataset.isSigned(DefaultDataset.java:225)
	at net.imagej.DefaultDataset.mergedColorCompatible(DefaultDataset.java:704)
	at net.imagej.DefaultDataset.<init>(DefaultDataset.java:101)
	at net.imagej.DefaultDatasetService.create(DefaultDatasetService.java:200)
	at io.scif.services.DefaultDatasetIOService.open(DefaultDatasetIOService.java:128)
	at net.imagej.omero.DefaultOMEROService.downloadImage(DefaultOMEROService.java:515)
	at net.imagej.omero.commands.OpenFromOMERO.run(OpenFromOMERO.java:91)
	at org.scijava.command.CommandModule.run(CommandModule.java:199)
	at org.scijava.module.ModuleRunner.run(ModuleRunner.java:168)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:127)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:66)
	at org.scijava.thread.DefaultThreadService$3.call(DefaultThreadService.java:238)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Could not open a plane for the given dimensions
	at net.imglib2.cache.ref.SoftRefLoaderRemoverCache.get(SoftRefLoaderRemoverCache.java:168)
	at net.imglib2.cache.util.LoaderRemoverCacheAsLoaderCacheAdapter.get(LoaderRemoverCacheAsLoaderCacheAdapter.java:37)
	at net.imglib2.cache.util.LoaderCacheAsCacheAdapter.get(LoaderCacheAsCacheAdapter.java:30)
	at net.imglib2.cache.util.CacheAsUncheckedCacheAdapter.get(CacheAsUncheckedCacheAdapter.java:28)

Files can be found at
https://zenodo.org/record/16956#.Wt-UNtPwbdc

@jburel jburel added the bug label Jun 5, 2018
@ctrueden
Copy link
Member

ctrueden commented Jun 6, 2018

I cannot reproduce this bug with the linked DICOM images. Here is what I tried:

  1. Downloaded the ZIP
  2. Tried to import the ZIP via OMERO.insight; was told it is an unsupported format.
  3. Unpacked the ZIP to its folder structure.
  4. Added the folder to OMERO.insight importer; it imported 143 images into OMERO.
  5. Tried opening "MR000000 [Series 0]" (256 x 256 uint16 image with 5 Z sections); it worked.

Which DICOM file failed to open for you, @jburel? Or did I import the data incorrectly to OMERO?

@jburel
Copy link
Contributor Author

jburel commented Jun 6, 2018

It works for some but not for others
one that failed is SE000001/MR000018 [Series 1]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants