- * 方法三
- read_image (Image, 'E:/9.jpg')
- decompose3(Image, R, G, B)
- trans_from_rgb(R,G,B,L,a,b,'cielab')
- convert_image_type(a,a,'real')
- intensity(a,a,Meana1,Deviationa1)
- get_image_size(a,Width, Height)
- gen_image_const(Image1, 'real', Width, Height)
- gen_image_proto(Image1, ImageCleared, Meana1)
- sub_image(a,ImageCleared, a1, 1, 0)
- intensity(a1,a1,Meana2, Deviationa2)
- gen_image_const(Image2, 'byte', Width, Height)
- gen_image_proto(Image2, a3, Meana1+Meana2)
- convert_image_type(b,b,'real')
- intensity(b,b,Meanb1,Deviationb1)
- * get_image_size(b,Width, Height)
- gen_image_const(Image1, 'real', Width, Height)
- gen_image_proto(Image1, ImageCleared, Meanb1)
- sub_image(b,ImageCleared, b1, 1, 0)
- intensity(b1,b1,Meanb2, Deviationb2)
- gen_image_const(Image2, 'byte', Width, Height)
- gen_image_proto(Image2, b3, Meanb1+Meanb2)
- trans_to_rgb(L,a3,b3,R1,G1,B1,'cielab')
- compose3(R1,G1,B1,RGB1)
复制代码
|