Considering an image of size 100 X 280. A binary mask of size 7X4. when masking the image with this mask, At the end, Im getting an error that Index exceeds matrix dimensions. For that What can I do? Can I return an empty matrix? If it is possible, how?

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 11 Sep. 2012

0 Stimmen

YourVariable = []; %this is an empty matrix

1 Kommentar

Sabarinathan Vadivelu
Sabarinathan Vadivelu am 11 Sep. 2012
How to mask an image size of 512 X 512 with a mask of size 5X5?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by