-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
The following macro:
newImage("Untitled", "8-bit ramp", 64, 64, 1);
makeOval(16, 18, 35, 27);
setForegroundColor(255, 255, 255);
run("Fill", "slice");
run("Select None");
run("BlackHatJ ", "x=2 y=2");Produces the exception:
(Fiji Is Just) ImageJ 2.0.0-rc-59/1.51j; Java 1.8.0_112 [64-bit]; Mac OS X 10.12.3; 125MB of 9795MB (1%)
java.lang.RuntimeException: /Users/saudet/projects/bytedeco/javacpp-presets/opencv/cppbuild/macosx-x86_64/opencv-3.0.0/modules/imgproc/src/color.cpp:7564: error: (-215) scn == 3 || scn == 4 in function cvtColor
at org.bytedeco.javacpp.opencv_imgproc.cvtColor(Native Method)
at BlackHatJ_.run(BlackHatJ_.java:53)
at ij.IJ.runUserPlugIn(IJ.java:217)
at ij.IJ.runPlugIn(IJ.java:181)
If you change 8-bit to RGB (!) then it runs.
Is this because the BlackHatJ command hardcodes the conversion from BGR to gray?
The same error with 8-bit images happens also with CannyEdgeDetectionJ, FaceDetectionJ, and probably others.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels