http://blog.youkuaiyun.com/xinrui_hhuc/article/details/6131501
change_format ( Image : ImagePart : Width, Height : )
改變Image圖像大小,而且ImagePart圖像為灰度值圖像。
crop_domain ( Image : ImagePart : : )
從Image圖像中裁剪一個矩形區域。這個矩形的周長最小。
crop_domain_rel ( Image : ImagePart : Top, Left, Bottom, Right : )
刪除相關區域,Top為頂端裁剪的行數,Left,Bottom,Right類似。
crop_part ( Image : ImagePart : Row, Column, Width, Height : )
刪除一個矩形圖像區域。Row為右上角的列標索引。Width, Height為新圖像ImagePart的寬度和高度。
crop_rectangle1 ( Image : ImagePart : Row1, Column1, Row2,
Column2 : )
刪除一個矩形圖像區域。
tile_channels ( Image : TiledImage : NumColumns, TileOrder : )
將多通道圖像平鋪為一幅大的單通道圖像。NumColumns為平鋪的列數。TileOrder為平鋪的方式。
tile_images ( Images : TiledImage : NumColumns, TileOrder : )
將多通道平鋪。
程序:
- read_image (Image, 'G:/Halcon/機器視覺/images/brycecanyon1.png')
- get_image_pointer1 (Image, Pointer, Type, Width, Height)
- change_format (Image, ImagePart, Width/2, Height/2)
- crop_domain (Image, ImagePart1)
- crop_domain_rel (ImagePart1, ImagePart2, -20, -20, -1, -1)
- crop_part (ImagePart2, ImagePart3, 100, 100, Width, Height)
- crop_rectangle1 (ImagePart3, ImagePart4, 100, 100, 200, 200)
- tile_channels (Image, TiledImage, 2, 'horizontal')
- tile_images (Image, TiledImage1, 1, 'vertical')
- tile_images_offset (Image, TiledImage2, 0, 0, 50, 50, -1, -1, Width, Height)
處理效果:

|