[問題] 如何使用snake已回收

看板MATLAB作者 (KILALA)時間16年前 (2009/02/24 20:50), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
我看了一些文章 介紹了snake的用法 理論看起來我了解了 上網得到的一個snake.m 想要使用它 但是卻看不懂怎麼去輸入設定參數 請問有沒有人使用過呢?? 可不可以撥空幫我講解一下各參數是..?? 謝謝~!!!^_^ 以下就貼出程式裡的解說..因為我一直看都不瞭解 Orz [snake_pnts,e] = snake(pnts, alpha, beta, ... max_delta_y, resol_y, max_delta_x, resol_x, feat_img) % pnts Starting contour. Each row is a [x,y] coordinate. % alpha Energy contributed by the distance between control points. % Set to zero if length of slope doesn't matter. % beta Energy contributed by the curvature of the snake. Larger % values of beta cause bends in the snake to have a high cost % and lead to smoother snakes. % max_delta_y Max number of pixels to move each contour point vertically % resol_y Contour points will be moved by multiples of resol_y % max_delta_x Analog to max_delta_y % resol_x Analog to resol_y % feat_img 2D-Array of the feature responses in the image. For example % it can contain the magnitude of the image gradients % % Outputs: % snake_pnts New contour points. % e Energy value of these new contour points -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.128.142.124
文章代碼(AID): #19e-qXJ1 (MATLAB)
文章代碼(AID): #19e-qXJ1 (MATLAB)