level 2
爱你那些年_
楼主
本人有一批照片需要灰度化,灰度化完了以后想要批量写出程序怎么写?求助大神![[乖]](/static/emoticons/u4e56.png)
* Image Acquisition 01: Code generated by Image Acquisition 01
list_files ('C:/Users/joe_x/Desktop/b2', ['files','follow_links','recursive'], ImageFiles)
tuple_regexp_select (ImageFiles, ['\\.(tif|tiff|gif|bmp|jpg|jpeg|jp2|png|pcx|pgm|ppm|pbm|xwd|ima|hobj)$','ignore_case'], ImageFiles)
for Index := 0 to |ImageFiles| - 1 by 1
read_image (Image, ImageFiles[Index])
* Image Acquisition 01: Do something
rgb3_to_gray (Image, Image, Image, ImageGray)
write_image 这个应该怎么写
endfor
2017年05月13日 02点05分
1
* Image Acquisition 01: Code generated by Image Acquisition 01
list_files ('C:/Users/joe_x/Desktop/b2', ['files','follow_links','recursive'], ImageFiles)
tuple_regexp_select (ImageFiles, ['\\.(tif|tiff|gif|bmp|jpg|jpeg|jp2|png|pcx|pgm|ppm|pbm|xwd|ima|hobj)$','ignore_case'], ImageFiles)
for Index := 0 to |ImageFiles| - 1 by 1
read_image (Image, ImageFiles[Index])
* Image Acquisition 01: Do something
rgb3_to_gray (Image, Image, Image, ImageGray)
write_image 这个应该怎么写
endfor