把图片变成hsv空间 做hsv拉升
就是让后把其中分量一个拉高,再合成,这时候就会有很大差异
- decompose3(Image201811221542879246434751, Image1, Image2, Image3)
- trans_from_rgb(Image1, Image2, Image3, h, s, v, 'hsv')
- get_image_size(h, Width, Height)
- gen_rectangle1(Rec1, 0, 0,Height,Width)
- scale_image_max(s, s1)
- scale_image_max(v,v1)
- trans_to_rgb(h, s1, v1, ImageRed, ImageGreen, ImageBlue, 'hsv')
- compose3(ImageRed, ImageGreen, ImageBlue, MultiChannelImage)
复制代码
然后就是灰度分层
- rgb1_to_gray (Image, GrayImage)
- threshold (GrayImage, Region, 15, 77)
- overpaint_region (GrayImage, Region, 255, 'fill')
- get_image_size (GrayImage, Width, Height)
- gen_rectangle1 (Rectangle, 0, 0, Height-1, Width-1)
- difference (Rectangle, Region, RegionDifference)
- overpaint_region (GrayImage, RegionDifference, 0, 'fill')
复制代码
|