フィルターのクリア

find patches of images by updating the center of the patch

3 ビュー (過去 30 日間)
prashant singh
prashant singh 2016 年 7 月 13 日

how can i extract patches from the image if i have the centre of starting patch and dynamically updating the centre coordinate of the patch and extracting the patches based on that .

centerCoord = [70,75]; % intiall center of the patch
patchSourceImage = im(centerCoord(1)-ceil(patchSize/2):centerCoord(1)+ceil(patchSize/2)-1,centerCoord(2)-ceil(patchSize/2):centerCoord(2)+ceil(patchSize/2)-1); %find the patch based on the center coordinate

The next step will be to update the centre coordinate and find next patch based on that . The stride value could be 16 for updating the coordinate.

回答 (0 件)

カテゴリ

Help Center および File ExchangePolygons についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by