how to crop a size of 25x20 from a image if centre coordinates are known

2 ビュー (過去 30 日間)
Abel
Abel 2022 年 8 月 5 日
回答済み: KSSV 2022 年 8 月 5 日
I have an image with 100 small circles in it and i have the centre coordinates of these circles. How to crop 25x20 size image from the known centre coordinates and apply on all these 100 small circle coordinates on the image.

回答 (1 件)

KSSV
KSSV 2022 年 8 月 5 日
Let (x,y) be your center pixl locations.
iwant = imcrop(I,[x-10 y-10 20 20]) ;

Community Treasure Hunt

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

Start Hunting!

Translated by