Can the matrix be displayed in a way other than imagesc, imshow, image or pcolor commands (similar to the plot command)?

5 visualizaciones (últimos 30 días)
displaying a matrix by imagesc,imshow,image or pcolor commands is similar to the following figure(serrated line) :
Can the matrix be displayed as a straight line like the plot command?
the matrix is attached.
  3 comentarios

Iniciar sesión para comentar.

Respuesta aceptada

Matt J
Matt J el 9 de Jun. de 2021
Editada: Matt J el 9 de Jun. de 2021
One possibility is to use pgonCorners (which must be Downloaded)
to find the approximate vertices of the triangle. Then you can do
load Image
vertices=fliplr( pgonCorners(BW,3) );
plot( polyshape( vertices ) );
set(gca,'YDir','reverse')
  2 comentarios
HG
HG el 10 de Jun. de 2021
what about the irregular shape or a circle ? is it possible to show them ?
I attached the matrixes.
Matt J
Matt J el 10 de Jun. de 2021
In order to have built such images, you would have to have had to have the vertices. You can use those to plot, if you don't throw them away.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Display Image en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by