help > FANTASM run problem "Exception in thread "
Showing 1-5 of 5 posts
Display:
Results per page:
May 7, 2013  04:05 PM | Bui Toan
FANTASM run problem "Exception in thread "
Hello all,

I am using MIPAV verion 5.12 in Ubuntu and install JIST plugin (JIST-CRUISE-2011May09-11-42AM.jar). I try to run FANTASM algorithm but it has exception when running:
iteration 8 (max: 0.15002942)
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Matrix is singular.

What is happen? Please help me to fix it?
May 7, 2013  06:05 PM | aaron_carass - The Johns Hopkins University
RE: FANTASM run problem "Exception in thread "
Originally posted by Bui Toan:
Hello all,

I am using MIPAV verion 5.12 in Ubuntu and install JIST plugin (JIST-CRUISE-2011May09-11-42AM.jar). I try to run FANTASM algorithm but it has exception when running:
iteration 8 (max: 0.15002942)
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Matrix is singular.

What is happen? Please help me to fix it?

Can you post the complete debug ?
May 8, 2013  12:05 AM | Bui Toan
RE: FANTASM run problem "Exception in thread "
This is all debug

parameters:
3, 50, 0.01, 0.01, 2.0, false, 0.25, single_image, range, intensity, 0.05, false, 10, 2, 3, 3, true, 3, false, 0.05, 0.05, 0.0010, Gaussian, 0.0, true, true, false, hard_segmentation

-- FANTASM Segmentation --
boundaries: [39,464] [93,404] [1,1]
iteration 1 (max: 0.0)
centroids: (-686.7508, -874.0759, -303.99783)
iteration 2 (max: 0.9567711)
centroids: (-703.9205, -887.8279, -275.92084)
iteration 3 (max: 0.1643174)
centroids: (-719.8531, -892.11206, -262.00705)
iteration 4 (max: 0.11661273)
centroids: (-732.6587, -894.4707, -257.5305)
iteration 5 (max: 0.0943411)
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Matrix is singular.
at Jama.LUDecomposition.solve(LUDecomposition.java:282)
at Jama.Matrix.solve(Matrix.java:815)
at gov.nih.mipav.model.structures.jama.JamaMatrix.solve(JamaMatrix.java:53)
at edu.jhmi.rad.medic.methods.InhomogeneityCorrection2.computeExact3DPolynomialField(InhomogeneityCorrection2.java:762)
at edu.jhmi.rad.medic.methods.InhomogeneityCorrection2.compute3DPolynomialField(InhomogeneityCorrection2.java:689)
at edu.jhmi.rad.medic.methods.InhomogeneityCorrection2.computeCorrectionField(InhomogeneityCorrection2.java:607)
at edu.jhmi.rad.medic.algorithms.AlgorithmFantasm.calcSegmentation(AlgorithmFantasm.java:537)
at edu.jhmi.rad.medic.algorithms.AlgorithmFantasm.runAlgorithm(AlgorithmFantasm.java:245)
at gov.nih.mipav.model.algorithms.AlgorithmBase.run(AlgorithmBase.java:565)
at edu.jhmi.rad.medic.dialogs.JDialogFantasms.callAlgorithm(JDialogFantasms.java:1447)
at edu.jhmi.rad.medic.dialogs.JDialogFantasms.actionPerformed(JDialogFantasms.java:1016)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
May 8, 2013  01:05 PM | aaron_carass - The Johns Hopkins University
RE: FANTASM run problem "Exception in thread "
Try turning off the Inhomogeneity Correction.
May 8, 2013  03:05 PM | Bui Toan
RE: FANTASM run problem "Exception in thread "
Thank you. I turned off Ingomogeneity correction and it run successfully.