MATLAB Answers

Combining 2D plots laying in 3D image

15 views (last 30 days)
Lisa Regler
Lisa Regler on 18 Jun 2020 at 18:04
Edited: darova on 19 Jun 2020 at 9:45
Hello together,
I'm quite new in Using Matlab, so this may is a easy question:
I got an intensity profile of a grey image, so the mean(..) function is related to the three different color channels.
I have to get the curve of a crossline through the image, so
x = [1 866];
y = [379 379]
after loading the matrix
my code is:
x = [1 866];
y = [379 379];
Dose_medfilt = medfilt2(mean(Dose, 3), [5, 5]); %medfilt2 is for making the curve smooth for every value, looking at 5 pixels arround)
improfile(mean(Dose_medfilt, 3), x, y);
grid on
Since the image has also a y direction, i have to extract 11 dose profiles (from [374 374] until [384 384]) and take the mean curve of it.
Can anyone tell me how to do this?


Sign in to comment.

Answers (0)