O’Reilly Learning OpenCV phần 4

Hai đối số đầu tiên là các tên cho trackbar và tên của cửa sổ cha mẹ mà trackbar sẽ được đính kèm. Khi trackbar được tạo ra nó được thêm vào trên hoặc phía dưới của cửa sổ cha mẹ, nó sẽ không hấp thụ bất kỳ hình ảnh đã có trong cửa sổ. Hai đối số là giá trị, một con trỏ đến một số nguyên sẽ được thiết lập tự động | Figure 6-11. The Canny edge detector paraml 50 param2 150 is run first with the results shown in gray and the progressive probabilistic Hough transform paraml 50 param2 10 is run next with the results overlayed in white you can see that the strong lines are generally picked up by the Hough transform The paraml and param2 arguments are not used by the SHT. For the PPHT paraml sets the minimum length of a line segment that will Foe returned and param2 sets the separation detween cc2ttinegr segments rear ered fon the elnoriehm non to join tdnm into e ernrte longnr -egmand Foe1 0rmult2snale HTt shn two pn-am-ters ere US eg So mdi-sate Hgginr reoolutions to which the parameters for the lines should be computed. The multiscale opt fiftCsamputre the locat ions of the lines to theaccuracy given bythe rho andehete parameter end then sow on ne reWnethocs resoSts by a facCaiofporaml and pcrnmi .resn eaSTclc tho finaSeaoolatroc in rCo in a ho dividedby acra me end thefioaC deooTotion in ah eSo a tTeta divided by paras2f Whan the Cunoiion ceiuacs dependson how itwcs cahed. if ohe Crna_eSorcae value Ths amalrlr acray tCon the ariaai rslurn veiuewiir a e eSHil n this rrcdi rho nseleix shocld de nf lyps av_P2FC2 sc it de a HT er muOii-saclc HT is beinc ored exdshruiC Ce cv_sac 4 a ihcPPHT a leing used. Iniheit rst Cwo ces p-0 chd o -ad n Viastaes forsach hne will be cSomed ice the lwo ahapnels ap nhe a iPe case of the PPHT the four channels will wnr a hr si andc-vchibc oftSa seaoiann ee dpeintr oi the rehurned sepmsnto. ina n ro tiwsecas rs. iXe nTTbrs rl rowc intìie array edill Ise update d bo rrosuges ìfpscì to cor eeccly refleCt the nuwars of lincc returnod. rsugcrra isípioii I 157 If the line_storage value was a pointer to a memory store then the return value will be a pointer to a CvSeq sequence structure. In that case you can get each line or line segment from the sequence with a command like float line float cvGetSeqElem lines i where lines is the return value

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
54    472    8    01-07-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.