如题???

解决方案 »

  1.   

    很难,因为彩色图像是由RGB分量组成,是三维空间的一个表示量
      

  2.   

    我老板让我这么做,可是我还是想不通。提取出R,G,B值
    将其变换成这样 R+256*G+256*256*B,然后再提取边缘,可是我想这效果不还是和灰度的一样嘛??????
      

  3.   

    用颜色相似度试试
    ulDistance=3*(*RColor-red)*(*RColor-red)+4*(*GColor-green)*(*GColor-green)+
    2*(*BColor-blue)*(*BColor-blue);
      

  4.   

    其实转换成灰度图检测,然后根据灰度图上的坐标在彩色图上操作就可以了,当前彩色图不变,再COPY一个转成灰度图,看上去是直接在彩色图上操作的,骗骗外行。我就是这么做的。
      

  5.   

    You can extend the normal edge detection algorithm into three dimension space. 
    These three dimensional space corresponds to (R,G,B) components. hope it will be helpful.
      

  6.   


    HSL当然不需要转化成灰度图,而且除了灰度边缘,还可以找出色度边缘