gpt4 book ai didi

java - 从宏运行 OrientationJ 时,是什么原因导致 "multiple points exception"?

转载 作者:行者123 更新时间:2023-12-01 12:38:50 27 4
gpt4 key购买 nike

我正在尝试按照开发人员的指示从宏运行orientationJ http://bigwww.epfl.ch/demo/orientation/

// Call the Measure plugin from a ImageJ macro
makeRectangle(250, 250, 50, 50);
run("OrientationJ Measure", "sigma=.0.0");
// sigma: standard deviation of the Laplacian of Gaussian prefilter
// The results are displayed on the log window of ImageJ in tab-separated format

但是,我收到以下错误。我该如何解决?

ImageJ 1.48v; Java 1.6.0_20 [64-bit]; Windows 7 6.1; 6666K of 3068MB (<1%)

java.lang.NumberFormatException: multiple points
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1084)
at java.lang.Double.parseDouble(Double.java:510)
at OrientationJ_Measure.run(OrientationJ_Measure.java:62)
at ij.IJ.runUserPlugIn(IJ.java:199)
at ij.IJ.runUserPlugIn(IJ.java:210)
at ij.IJ.runPlugIn(IJ.java:163)
at ij.Executer.runCommand(Executer.java:131)
at ij.Executer.run(Executer.java:64)
at ij.IJ.run(IJ.java:269)
at ij.macro.Functions.doRun(Functions.java:590)
at ij.macro.Functions.doFunction(Functions.java:89)
at ij.macro.Interpreter.doStatement(Interpreter.java:226)
at ij.macro.Interpreter.doStatements(Interpreter.java:214)
at ij.macro.Interpreter.run(Interpreter.java:111)
at ij.macro.Interpreter.run(Interpreter.java:81)
at ij.macro.Interpreter.run(Interpreter.java:92)
at ij.plugin.Macro_Runner.runMacro(Macro_Runner.java:153)
at ij.plugin.Macro_Runner.runMacroFile(Macro_Runner.java:137)
at ij.plugin.Macro_Runner.run(Macro_Runner.java:34)
at ij.IJ.runPlugIn(IJ.java:169)
at ij.Executer.runCommand(Executer.java:131)
at ij.Executer.run(Executer.java:64)
at java.lang.Thread.run(Thread.java:619)

最佳答案

run("OrientationJ Measure", "sigma=.0.0");

您的西格玛值有两位小数。删除第一个。

java.lang.NumberFormatException: multiple points

它正在提示这一点。示例中可能存在拼写错误。

关于java - 从宏运行 OrientationJ 时,是什么原因导致 "multiple points exception"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25316805/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com