目錄
一、Halcon
1. 獲取像素坐標以及灰度
2. 拖動縮放
3.圖像縮放的實現方式
二、VS聯合編程
1.獲取像素坐標和灰度
2.拖動縮放
一、Halcon
1. 獲取像素坐標以及灰度
*1. 獲取像素坐標
* 1. get_mposition
* 2. halcon窗口事件自帶坐標數據
*
*2. 獲取像素灰度
* get_grayval
** read_image (Image, 'printer_chip/printer_chip_01')
*read_image (Image, 'E:/bmp/card.bmp')
read_image (Image, './rgb.bmp')
dev_get_window (WindowHandle)get_mposition (WindowHandle, Row, Column, Button)get_grayval (Image, Row, Column, Grayval)
tuple_length (Grayval, Length)if (Length = 1)*黑