Fixed threshold image for single images.
authorabokinsky <abokinsky@ba61647d-9d00-f842-95cd-605cb4296b96>
Mon, 19 Mar 2018 15:52:28 +0000 (15:52 +0000)
committerabokinsky <abokinsky@ba61647d-9d00-f842-95cd-605cb4296b96>
Mon, 19 Mar 2018 15:52:28 +0000 (15:52 +0000)
git-svn-id: https://citdcbmipav.cit.nih.gov/repos-pub/mipav/trunk@15420 ba61647d-9d00-f842-95cd-605cb4296b96

mipav/src/plugins/PlugInDialogVolumeRender.java

index 84e5739..ad5ae48 100644 (file)
@@ -981,7 +981,7 @@ public class PlugInDialogVolumeRender extends JFrame implements ActionListener,
                        wormImage = fileIO.readImage(fileName, imageFile.getParent() + File.separator, false, null); \r
                        wormImage.calcMinMax();     \r
                        \r
-                       if ( thresholdImageCheck.isSelected() && (imageFile2 == null) )\r
+                       if ( thresholdImageCheck.isSelected() && ((imageFile2 == null) || ((imageFile2 != null) && !imageFile2.exists())) )\r
                        {\r
                                for ( int i = 0; i < wormImage.getDataSize(); i++ )\r
                                {\r