Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

removing points out of a imcontourplot

4 visualizaciones (últimos 30 días)
Bram Mast
Bram Mast el 1 de Mzo. de 2017
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Dear All
I'm creating imcontourplots of grayscale SEM-images. Since I want to simplify the contourplots I thinking about removing points out of the array so that the contour is created with less data points. How can I remove points out of a imcontourplot?
Thank you in advance.

Respuestas (1)

Jose Lara
Jose Lara el 10 de Mzo. de 2017
Hello Bram,
You can start by obtaining contour matrix and a handle to an hggroup object. For example, take the CreateContourPlotOfIMageDataExample in the "imcontour" documentation:
%This is the example
I = imread('rice.png');
imshow(I)
figure;
imcontour(I,3)
%Do this instead
I = imread('rice.png');
imshow(I)
figure;
[C,handle] = imcontour(I,3)
This provides a handle with the data used to create the image. You can use the following command to recontour the image:
>>contour(handle.XData,handle.YData,handle.ZData)
You can edit this data to remove points that you may not want or need.

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by