Exclude calculation in a part of array

1 Ansicht (letzte 30 Tage)
Ganesh kumar Badri narayan
Ganesh kumar Badri narayan am 22 Jun. 2017
Kommentiert: Adam am 22 Jun. 2017
I have created 300 by 300 array and I am interested to perform calculation for the space as shown in attached image. How can I exclude some part of array from main calculation?
  1 Kommentar
Adam
Adam am 22 Jun. 2017
Assuming you have the area define by a logical mask then just apply the mask to your data. It will collapse it to 1d, but that is fine if it is a per-point calculation. You can then put the results back into the original shape after.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Get Started with Image Processing Toolbox 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