Azzera filtri
Azzera filtri

How do I solve this problem:(Problem 44958. Crop an Image)

5 visualizzazioni (ultimi 30 giorni)
I know the function is imcrop,but I even don't understand the meaning of 'Rmin Cmin Rpix Cpix ',

Risposta accettata

Walter Roberson
Walter Roberson il 13 Apr 2022
  • Rmin - first row to crop at
  • Cmin - first column to crop at
  • Rpix - number of row pixels to use
  • Cpix - number of column pixels to use
Things to watch out for:
  • a lot of MATLAB functions deal in x, y coordinates, rather than rows and columns
  • the cropping functions operate a bit oddly in whether to include a pixel, so you might end up with one more row or column than you were expecting. Read the documentation carefully.

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by