I am looking to change the cursor to a circle when using the getpts function. I am manualy digitizing a video frame by frame of a ball traveling across the frame.
You can use thedrawpointfunction from the Image Processing Toolbox, ROI-Based Processing to have a circular marker on the image. The following code snippet gives you an example for a still image, you can loop it for every frame
I = imread('cameraman.tif');
imshow(I);
ptsx = []; % Final vector for x position
ptsy = []; % Final Vector for y position
for i = 1:4 % To save 4 points
roi = drawpoint('Color','r','SelectedColor','none');
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
0 Comments
Sign in to comment.