?????????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)                            //?????????????????????