From: Siddharth Magazine on
Yes..that is similar to what i was referring too. Once i have got the image acquired, with two points in the image, i would like to identify the two points with a "+" symbol or "*" symbol. Thanks for your response on my question. It seems like i am on the right track now. Also, if you could help me drawing a line between the two black points in the same image and calculating the distane between them using matlab codes, that would be great. So far, i can calculate the distance between the pixels of the two black points in the image manually, but i need to calculate the distance between the two black points automatically in pixels, if possible. Please help me on that too asap. Thanks.

ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <22ee7549-ceea-49a0-b38b-d4d5d27a6def(a)c10g2000yqi.googlegroups.com>...
> You mean like putting crosshairs over them?:
>
> % Read in standard MATLAB grayscale demo image.
> grayImage = imread('cameraman.tif');
> imshow(grayImage, []);
> title('Original Grayscale Image');
> set(gcf, 'Position', get(0,'Screensize')); % Enlarge figure to full
> screen.
>
> x1 = 115;
> y1 = 50;
> hold on; % Prevent image from getting blown away when we plot.
> plot(x1, y1, 'r+', 'MarkerSize', 30);
>
> x2 = 70;
> y2 = 150;
> plot(x2, y2, 'r+', 'MarkerSize', 30);
From: ImageAnalyst on
Just use the line() command to draw the line, and use hypot() to
calculate the distance using the Pythagorean Theorem.
From: Siddharth Magazine on
Thanks a lot for your response. It was really helpful.

ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <f4f8e6f0-d31a-4056-bcc6-84e00c18cdde(a)r27g2000yqb.googlegroups.com>...
> Just use the line() command to draw the line, and use hypot() to
> calculate the distance using the Pythagorean Theorem.