Effacer les filtres
Effacer les filtres

Obtaining subimages with only the x axis values

1 vue (au cours des 30 derniers jours)
shru s
shru s le 6 Juin 2017
Commenté : shru s le 12 Juin 2017
I have the following graph
in between the vertical lines is the part of the image i wish to crop and save. Could anyone suggest how I can do this? Thank you

Réponse acceptée

Walter Roberson
Walter Roberson le 6 Juin 2017
section_widths = diff( [0, list_of_x_values, size(YourImage,2)] );
sections = mat2cell( YourImage, size(YourImage,1), section_widths, size(YourImage,3) );
Now sections will be a cell array of matrices each containing one block. You can extract some of them using {} indexing, and save as desired.

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by