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

Objects counter throws exception when processing 2D image slice by slice #13

Open
haesleinhuepf opened this issue Dec 5, 2019 · 0 comments

Comments

@haesleinhuepf
Copy link

Hey @frauzufall ,

I tested the checkboxes of the objects counter. If you activate “Threshold each plane” and “Process in slices”, it throws this exception:

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 1
	at net.imglib2.view.Views.hyperSlice(Views.java:592)
	at sc.fiji.labeleditor.plugin.mode.timeslice.TimeSliceLabelEditorModel.getIndexImgAtTime(TimeSliceLabelEditorModel.java:41)
	at sc.fiji.labeleditor.plugin.mode.timeslice.TimeSliceLabelEditorRenderer.updateOnTagChange(TimeSliceLabelEditorRenderer.java:29)
	at sc.fiji.labeleditor.core.view.LabelEditorRenderers.prepare(LabelEditorRenderers.java:70)
	at sc.fiji.labeleditor.core.view.LabelEditorRenderers.add(LabelEditorRenderers.java:57)
	at sc.fiji.labeleditor.core.view.LabelEditorRenderers.lambda$addDefaultRenderers$1(LabelEditorRenderers.java:37)
	at java.util.ArrayList.forEach(ArrayList.java:1257)
	at sc.fiji.labeleditor.core.view.LabelEditorRenderers.addDefaultRenderers(LabelEditorRenderers.java:33)
	at sc.fiji.labeleditor.core.AbstractLabelEditorPanel.addRenderers(AbstractLabelEditorPanel.java:102)
	at sc.fiji.labeleditor.core.AbstractLabelEditorPanel.init(AbstractLabelEditorPanel.java:76)
	at a.fiji.labeleditor.plugin.imagej.SwingTimeSliceLabelEditorModelDisplayViewer.createDisplayPanel(SwingTimeSliceLabelEditorModelDisplayViewer.java:35)
	at a.fiji.labeleditor.plugin.imagej.SwingTimeSliceLabelEditorModelDisplayViewer.createDisplayPanel(SwingTimeSliceLabelEditorModelDisplayViewer.java:16)
	at a.fiji.labeleditor.plugin.imagej.EasySwingDisplayViewer.view(EasySwingDisplayViewer.java:65)
	at org.scijava.ui.viewer.DisplayViewer.view(DisplayViewer.java:86)
	at org.scijava.ui.AbstractUserInterface$1.run(AbstractUserInterface.java:141)
	at org.scijava.thread.DefaultThreadService.lambda$wrap$1(DefaultThreadService.java:214)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Is it maybe possible to grey out these checkboxes in case 2D images are processed?

Thanks!

Cheers,
Robert

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

No branches or pull requests

1 participant