How to draw 50 equally distributed radii on a spherical image?
3 views (last 30 days)
Show older comments
Hi,
I have fluorescent images from cell spheroids taken at different time points, and I would like to calculate the radial distribution of fluorescence for each time point. I have read a paper that briefly describes how to do this (https://pubs.acs.org/doi/full/10.1021/mp500002y); however, they do not provide the code for their custom algorithm. Therefore I decided to divide the problem into smaller steps as described in the paper, and my first challenge is to draw 50 equally spaced radii on the spherical microscopy images I have. I have no idea how to do this and therefore need your help. Could you please explain how I can do this on matlab?
0 Comments
Answers (1)
Image Analyst
on 30 Jun 2018
See attached demos that get values radially from a center point. Adapt as needed.
9 Comments
Ceylan Sonmez
on 21 Jul 2018
Can you please use words to describe what the issue is? I already answered above that for xcenter the value that has to be entered is 553 and for ycenter its 270.
Once those values are provided the code runs fine.
Providing the code again assuming this is what you meant with the above response:
centerXf=[];
centerYf=[];
i = 0:7.2:360;
for j = 1:length(i)
lineLength = 350;
angle = i(j);
centerX(1) = xcenter;
centerY(1) = ycenter;
centerX(2) = centerX(1) + lineLength * cosd(angle);
centerY(2) = centerY(1) + lineLength * sind(angle);
hold on;
plot(centerX, centerY,'b-');
grid on;
centerXf(j,:)=centerX;
centerYf(j,:)=centerY;
end
See Also
Categories
Find more on Biomedical Imaging in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!