clij / clij/clij2-docs

voronoiLabeling() issue

Open
#29 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
ImageJ Macro
Stars
8
Forks
14
PR merge metrics
No merged PRs in 30d

Description

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)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.