试图在imagej中创建马赛克,我得到了这个Java错误

发布于 2025-01-21 01:45:06 字数 2322 浏览 0 评论 0原文

我正在尝试使用斐济(ImageJ)中的Mosaicj插件缝制图像,但是,我在下面的代码中获取错误。有人知道这意味着什么,我如何解决这个问题?我根本没有使用Java的经验。如果这是相关的,我正在使用MacBook。谢谢。 java error

Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at ij.gui.NewImage.createFloatImage(NewImage.java:326)
at MosaicJTree.getGlobalImage(MosaicJ_.java:5306)
at MosaicJTree.createMosaic(MosaicJ_.java:4692)
at MosaicJ_.actionPerformed(MosaicJ_.java:222)
at java.awt.MenuItem.processActionEvent(MenuItem.java:669)
at java.awt.MenuItem.processEvent(MenuItem.java:628)
at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:357)
at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:345)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:763)
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.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
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)

线程中的异常“ awt-eventqueue-0” java.lang.lang.outofmemoryerror:空间 线程“ Awt-Eventqueue-0” java.lang.outofmemoryerror中的例外:Java堆空间 线程“ Awt-Eventqueue-0” java.lang.outofmemoryerror中的例外:Java堆空间 线程“ Awt-Eventqueue-0” java.lang.outofmemoryerror中的例外:Java堆空间

I am trying to stitch images using the MosaicJ plugin in Fiji (ImageJ), however, I get the error in the code below. Does anyone know what it means and how I can fix this please? I have no experience using Java at all. I am using a MacBook by the way if this is relevant.Thanks. Java error

Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at ij.gui.NewImage.createFloatImage(NewImage.java:326)
at MosaicJTree.getGlobalImage(MosaicJ_.java:5306)
at MosaicJTree.createMosaic(MosaicJ_.java:4692)
at MosaicJ_.actionPerformed(MosaicJ_.java:222)
at java.awt.MenuItem.processActionEvent(MenuItem.java:669)
at java.awt.MenuItem.processEvent(MenuItem.java:628)
at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:357)
at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:345)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:763)
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.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
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)

Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

全部不再 2025-01-28 01:45:06

就您而言,您超出了 ImageJ 中的最大可用内存。
所以,如果你的数据不大并且可以在内存中处理。您可以增加 ImageJ 可以使用的内存:
作者:编辑>选项>内存和线程。

2-
如果你的数据很大,我会推荐使用 BigStitcher ImageJ 插件。您可以在此处找到教程:https://www.youtube.com/playlist?list=PLNZz8lLDpAeVOeAmQWMrKGOeB3vv28yJE< /a> .

MosaicJ 是很久以前制作的。所以我不确定他们是否支持延迟加载模式。或者他们是否使用虚拟堆叠。

我建议您询问:https://forum.image.sc/,您可以标记@ctrueden或者作者之一,在ImageJ相关问题上比stackoverflow更有效。

In your case, you're exceeding the maximum memory available in ImageJ.
So, if your data is not big and it can be handled in the memory. you can increase the memory that ImageJ can use:
By: Edit > Options > Memory and Threads.

2-
If your data is big, I will recommend using BigStitcher ImageJ plugin. you can find tutorials here: https://www.youtube.com/playlist?list=PLNZz8lLDpAeVOeAmQWMrKGOeB3vv28yJE .

MosaicJ was made a long time ago. So I am not sure if they supports lazy loading mode. or if they are using virtual stacking.

And I will recommend asking in : https://forum.image.sc/ and you can tag @ctrueden or one of the author, it is more effecient than stackoverflow in ImageJ related questions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文