Halcon???????????
???????????? ???????[ 2015/4/16 11:03:31 ] ????????Halcon ??????
?????????detect_indent_fft.hdev
???????????????????????????????????任??FFT?????????????????????????????????·????????
???????????????????????????????????????????????????????????????
?????????????????????????п????????任??
??????????????????????????????????????????????????
??????????????????????????????????????????????д???
*Initialization?????????
dev_updata_off() //?????????????????????
//dev_updata_pc(‘off’) ?????3????????
//dev_updata_var(‘off’) ?????±???????
//dev_updata_window(‘off’) ?????????????????????????????????????????????
dev_close_window() //???????????
read_image(Image??’plastics
/
plastics_01’) //??????
//??????????????????????Image??
// ???????’plastics/plastics_01’??
get_image_size(Image??Width??height) //???????????
//?????????????????????????Image??
// ??????Width??
// ??????Height??
dev_open_window(0??0??Width??Height??’Black’??WindowHandle) //??????μ??????
//????????????????0??0??
// ??С??Width??Height??
// ?????????’Black’??
// ????????WindowHandle??
set_display_font ??WindowHandle??14??’mono’??’ture’??’false’??//???ò?????????????????
//?????????????????WindowHandle??
// ?????С??14??
// ?????????’mono’??
// ?????壨’ture’??
// ?????б??’false’??
dev_set_draw(‘Margin’) //?????????????
//????????????????’Margin’????’Fill’??
dev_set_line_width??3?? //?????????????????????
//???????????????????????????????
dev_set_color??’red’?? //???????????????????
*
*Optimize the fft speed for the specific image size(???????????С????fft??????)
optimize_rft_speed??Width??Height??’standard’?? //???????С??????fft?????????
//?????????????С??Width??Height??
// ???????’standard’??
*
*Construct a suitable filter by combining two Gaussian filters??????????????????????*??????????????
Sigma1 := 10.0
Sigma2 := 3.0 //????????????
gen_gauss_filter(GaussFilter1??Sigma1??Sigma1??0.0??’none’??’rft’??Width??Height)
gen_gauss_filter(GaussFilter2??Sigma2??Sigma2??0.0??’none’??’rft’??Width??Height) //?????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11