【问题标题】:How to know intensity value of points in images如何知道图像中点的强度值
【发布时间】:2017-02-07 02:23:09
【问题描述】:

我想知道图像中特定坐标的强度。

例如,当我看到一个图像时,如果我想“我想知道这个特定点的强度!”,我如何获得强度?

我可以使用opencv和imageJ,但是如果你知道任何其他工具可以解决这个问题,我可以试试。

【问题讨论】:

    标签: python image opencv imagej


    【解决方案1】:

    在python中使用opencv见http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_core/py_basic_ops/py_basic_ops.html:

    import cv2
    import numpy as np
    img = cv2.imread('some.jpg')
    
    px = img[1,1]
    print px
    

    返回像素 1,1 的蓝色、绿色、红色强度:

    [55 0 0]
    

    【讨论】:

      【解决方案2】:

      我能够使用 imagej 的分析测量来解决问题! 非常感谢!!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-08-31
        • 2014-05-30
        • 1970-01-01
        • 1970-01-01
        • 2021-08-20
        • 2014-05-11
        相关资源
        最近更新 更多