批处理模式下 setAutoThreshold() 的默认参数是什么?
what are the default arguments for setAutoThreshold() in batch mode?
希望大家能帮帮我,这个论坛问的比较合适(我在群信上试过了,好像我的帖子没有被转发)。我继承了一些代码,我想重写。该代码包含一个将 batchmode 设置为 true 并调用 setAutoThreshold() 的宏。我只发现 setAutoThreshold 有 5 个不同的签名作为附加到 ImageProcessor 的方法,none 其中有 void(无输入参数)作为签名。因此我怀疑 batchmode 或宏本身在后台设置了一些默认参数。
setAutoThreshold 的默认值是什么(我如何将 setAutoThreshold() 转换为 setAutoThreshold(ARGUMENTS_HERE)?
它适用于当前图像的 imageProcessor?
macro documentation描述了可以使用的参数:
setAutoThreshold() Uses the "Default" method to determine the
threshold. It may select dark or bright areas as thresholded, as was
the case with the Image>Adjust>Threshold "Auto" option in ImageJ 1.42o
and earlier. See also: setThreshold, getThreshold, resetThreshold.
setAutoThreshold(method) Uses the specified method to set the
threshold levels of the current image. Use the
getList("threshold.methods") function to get a list of the available
methods. Concatenate " dark" to the method name if the image has a
dark background. For an example, see the AutoThresholdingDemo macro.
如果您对如何计算阈值感兴趣,ImageJ FAQ and the documentation wiki 中解释了默认的 AutoThreshold 方法。您还可以阅读源代码以了解计算是如何完成的。
我希望这能回答您的问题。您也可以尝试 ImageJ forum.
希望大家能帮帮我,这个论坛问的比较合适(我在群信上试过了,好像我的帖子没有被转发)。我继承了一些代码,我想重写。该代码包含一个将 batchmode 设置为 true 并调用 setAutoThreshold() 的宏。我只发现 setAutoThreshold 有 5 个不同的签名作为附加到 ImageProcessor 的方法,none 其中有 void(无输入参数)作为签名。因此我怀疑 batchmode 或宏本身在后台设置了一些默认参数。
setAutoThreshold 的默认值是什么(我如何将 setAutoThreshold() 转换为 setAutoThreshold(ARGUMENTS_HERE)? 它适用于当前图像的 imageProcessor?
macro documentation描述了可以使用的参数:
setAutoThreshold() Uses the "Default" method to determine the threshold. It may select dark or bright areas as thresholded, as was the case with the Image>Adjust>Threshold "Auto" option in ImageJ 1.42o and earlier. See also: setThreshold, getThreshold, resetThreshold.
setAutoThreshold(method) Uses the specified method to set the threshold levels of the current image. Use the getList("threshold.methods") function to get a list of the available methods. Concatenate " dark" to the method name if the image has a dark background. For an example, see the AutoThresholdingDemo macro.
如果您对如何计算阈值感兴趣,ImageJ FAQ and the documentation wiki 中解释了默认的 AutoThreshold 方法。您还可以阅读源代码以了解计算是如何完成的。
我希望这能回答您的问题。您也可以尝试 ImageJ forum.