Cut images with equal size and position

1 Ansicht (letzte 30 Tage)
agung pratama
agung pratama am 9 Sep. 2020
Kommentiert: Image Analyst am 22 Sep. 2020
Hello guys, how can i cut some images into same size and i can set (x1,y1) dan (x2,y2) for images cutting.

Akzeptierte Antwort

KSSV
KSSV am 9 Sep. 2020
Yes i can be done....define your (x1,y1) and (x2,y2). Note that they should be positive integers. Let I be your image.
iwant = I(x1:x2,y1:y2,:) ;
Also read about imcrop.
  11 Kommentare
agung pratama
agung pratama am 22 Sep. 2020
Thanks for your answers Mr Roberson and KSSV
Image Analyst
Image Analyst am 22 Sep. 2020
If it worked, please accept the answer to give KSSV credit for it.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by