【问题标题】:How to loop through each point of a multi point selection to get the pixel value?如何循环遍历多点选择的每个点以获取像素值?
【发布时间】:2021-09-02 13:20:58
【问题描述】:

我是 ImageJ 和 ImageJ 宏的新手。我开始制作一个在图像上应用“查找最大值”功能的宏。然后我想测试每个被发现为最大值的像素,以按值过滤它们。如何将选择的所有点循环到我的宏中? 谢谢

【问题讨论】:

    标签: imagej fiji imagej-macro


    【解决方案1】:

    终于找到答案了:

    threshold = 254;
    
    getSelectionCoordinates(x, y);
         for (i=0; i<x.length; i++){
            if(getPixel(x[i], y[i]) < threshold){
                setKeyDown("alt");
                makePoint(x[i], y[i]);
            }
    

    【讨论】:

      猜你喜欢
      • 2021-06-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-06-07
      • 1970-01-01
      • 2011-09-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多