# hello i am working on a project in matlab for the reflectivity measurement...can any body help me ?

3 views (last 30 days)
babli on 7 Feb 2015
Commented: babli on 1 Apr 2015
i have a code for generating area plot of multiple images but it takes all the plots in a loop and after loop it takes only the last plot..i want area of each plot to be save in a variable and make an array of these variables...here is my code.
for i=1:7;
for j=-3:3;
file_name=strcat('C:\Users\ASUS\Desktop\imgs\c',num2str(i),'.gif');
center=centers(1,2);
c=round(center);
area(im(c+j,:));hold all;
end
end
but this gives all area in a single figure..i need to plot area of particular image within that range in a figure and save it for further calculation....any idea for this..?
babli on 12 Feb 2015
suppose u ve an image with a white spot at some location....i just want to calculate the total intensity of this spot....like wise there is a series of n images with spot at different positions and different area..so i just want to catch them all and plot their intensity ...

Shaik Pasha on 31 Mar 2015
area_calc=[]; for i=1:7 for j=-3:3 file_name=strcat('C:\Users\ASUS\Desktop\imgs\c',num2str(i),'.gif'); im=imread(file_name); [centers, radii]=imfindcircles(im,[10 20]); center=centers(1,2); c=round(center); area_calc(i)=area_calc(i) + area(im(c+j,:)); hold all; end end
Hi check with this. As per my understanding this must help you out. If my understanding is incorrect please let me know the correct one.
babli on 1 Apr 2015
i have tried this one but its giving error: area_calc(i) matrix exeeds index dimension.

Image Analyst on 31 Mar 2015
"i just want to calculate area of particular spot", so see my Image Segmentation Tutorial: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
babli on 1 Apr 2015
can you help me in developing a GUI for plotting intensity sum of images. I have a series of images in which a reflected x-ray spot position and intensity is varying and i want to calculate the intensity of these spots and plot it in a graph. I have made a code for that but its not working correctly for those images in which spot intensity is very low. I can send u that code by mail. please tell me whats the problem.