1、get_grayval ( Image : : Row,
計算Image圖像中坐標為(Row,Column)
2、get_image_pointer1 ( Image :
計算Image圖像的數據指針Pointer,圖像類型T
3、get_image_pointer3 (
PointerBlue, Type, Width,
計算彩色圖像ImageRGB的參數。
4、get_image_pointer1_rect (
VerticalPitch,
計算Image圖像中定義區域的最小的長方形的區域的指針
5、get_image_time ( Image : : :
獲取圖像生成的時間。
程序::
可以通過上述查看參數深入了解各個函數的具體意義。
- dev_open_window (0, 0, 512,
512, 'black', Handle1) - read_image (Image, 'G:/Halcon/
機器視覺/images/autobahn.png') - get_grayval (Image, 12, 66,
Grayval) - get_image_pointer1 (Image,
Pointer, Type, Width, Height) - draw_region (Region1, Handle1)
- reduce_domain (Image, Region1,
ImageReduced) - get_image_pointer1_rect (
ImageReduced, PixelPointer, Width1, Height1, VerticalPitch, HorizontalBitPitch, BitsPerPixel) - read_image (Image1, 'G:/
Halcon/機器視覺/images/claudia. png') - get_image_pointer3 (Image1,
PointerRed, PointerGreen, PointerBlue, Type1, Width2, Height2) - get_image_time (Image,
MSecond, Second, Minute, Hour, Day, YDay, Month, Year)