Skip to content
Snippets Groups Projects
Commit bfed6034 authored by Mark Winter's avatar Mark Winter
Browse files

Check for 2D images in imagej plugin

parent eea9abba
Branches
No related tags found
No related merge requests found
......@@ -188,6 +188,13 @@ public class LeverscIJ implements PlugInFilter
// Keep original format around to help with conversion
imType = image.getType();
int nslice = image.getNSlices();
if ( nslice <= 1 )
{
IJ.error("Invalid Image", "Leversc does not support 2D images!");;
return;
}
int fignum = get_figunum();
if ( fignum <= 0 )
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment