Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

voronoiLabeling() issue #29

Open
quantixed opened this issue Aug 6, 2024 · 0 comments
Open

voronoiLabeling() issue #29

quantixed opened this issue Aug 6, 2024 · 0 comments

Comments

@quantixed
Copy link

Hello, I was trying to simplify some code and use voronoiLabeling() instead of voronoiOtsuLabeling() but I was getting an error. It can be reproduced using these lines from the ijm example (Fiji/IJ 1.54f on macOS).

https://github.com/clij/clij2-docs/blob/7ac797bf22431e0ecb49b3a1416a07606c1c9c16/src/main/macro/labelmap_voronoi.ijm#L16C1-L42C22

I could use maskedVoronoiLabeling() successfully, but I thought I should report the issue with voronoiLabeling()

The error is that I get a 32-bit blank image and the console says:

net.haesleinhuepf.clij.clearcl.exceptions.OpenCLException: OpenCL error: -10 -> CL_IMAGE_FORMAT_NOT_SUPPORTED
	at net.haesleinhuepf.clij.clearcl.backend.BackendUtils.checkOpenCLErrorCode(BackendUtils.java:352)
	at net.haesleinhuepf.clij.clearcl.backend.jocl.ClearCLBackendJOCL.getImagePeerPointer(ClearCLBackendJOCL.java:463)
	at net.haesleinhuepf.clij.clearcl.ClearCLContext.createImage(ClearCLContext.java:499)
	at net.haesleinhuepf.clij.clearcl.ClearCLContext.createImage(ClearCLContext.java:458)
	at net.haesleinhuepf.clij.CLIJ.createCLImage(CLIJ.java:327)
	at net.haesleinhuepf.clij.CLIJ.create(CLIJ.java:322)
	at net.haesleinhuepf.clij2.CLIJ2.create(CLIJ2.java:479)
	at net.haesleinhuepf.clij2.plugins.VoronoiLabeling.voronoiLabeling(VoronoiLabeling.java:50)
	at net.haesleinhuepf.clij2.plugins.VoronoiLabeling.executeCL(VoronoiLabeling.java:44)
	at net.haesleinhuepf.clij.macro.CLIJHandler.lambda$handleExtension$0(CLIJHandler.java:163)
	at net.haesleinhuepf.clij.clearcl.util.ElapsedTime.measure(ElapsedTime.java:97)
	at net.haesleinhuepf.clij.clearcl.util.ElapsedTime.measure(ElapsedTime.java:28)
	at net.haesleinhuepf.clij.macro.CLIJHandler.handleExtension(CLIJHandler.java:53)
	at ij.macro.ExtensionDescriptor.dispatch(ExtensionDescriptor.java:288)
	at ij.macro.Functions.doExt(Functions.java:5111)
	at ij.macro.Functions.getStringFunction(Functions.java:279)
	at ij.macro.Interpreter.getStringTerm(Interpreter.java:1520)
	at ij.macro.Interpreter.getString(Interpreter.java:1498)
	at ij.macro.Interpreter.doStatement(Interpreter.java:336)
	at ij.macro.Interpreter.doStatements(Interpreter.java:267)
	at ij.macro.Interpreter.run(Interpreter.java:163)
	at ij.macro.Interpreter.run(Interpreter.java:93)
	at ij.macro.Interpreter.run(Interpreter.java:107)
	at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:164)
	at ij.IJ.runMacro(IJ.java:165)
	at ij.IJ.runMacro(IJ.java:154)
	at net.imagej.legacy.IJ1Helper$3.call(IJ1Helper.java:1186)
	at net.imagej.legacy.IJ1Helper$3.call(IJ1Helper.java:1182)
	at net.imagej.legacy.IJ1Helper.runMacroFriendly(IJ1Helper.java:1133)
	at net.imagej.legacy.IJ1Helper.runMacro(IJ1Helper.java:1182)
	at net.imagej.legacy.plugin.IJ1MacroEngine.eval(IJ1MacroEngine.java:145)
	at org.scijava.script.ScriptModule.run(ScriptModule.java:173)
	at org.scijava.module.ModuleRunner.run(ModuleRunner.java:165)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:125)
	at org.scijava.module.ModuleRunner.call(ModuleRunner.java:64)
	at org.scijava.thread.DefaultThreadService.lambda$wrap$2(DefaultThreadService.java:247)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant