using improfile in 2D image.

8 Ansichten (letzte 30 Tage)
taewoo kim
taewoo kim am 7 Nov. 2018
Beantwortet: Walter Roberson am 16 Sep. 2019
I want to make a graph, which has x-axis, y-axis are size of a image and z-axis is intensity of that pixel, from a black-white image. The image is a just gradation dot(darkest at center).
L = size(my_img);
x = [1:L(1)];
y = [1:L(2)];
improfile(my_img, x, y)
I tried upper one. It shows graph from (1,1) to (end,end). And it is not I wanted. I want to get a cone shape graph. How can I get that??
  1 Kommentar
KAE
KAE am 16 Sep. 2019
With the image file, it is hard to help with this question. It is not clear where a cone is in an image that is not shown.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 16 Sep. 2019
surf(my_image, 'edgecolor','none')

Community Treasure Hunt

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

Start Hunting!

Translated by