selecting area on a image and Tracking the same area in the next subsequent images automatically
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
HARISH KUMAR
am 12 Jan. 2023
Kommentiert: HARISH KUMAR
am 14 Jan. 2023
I have 12 images in the folder, i want to select area (Basically i want to mark a region and see where those pixels are going in the next subsequent images,We do call ROI) on the first image, this same area to be tracked in the nest subsquent images (These remaining images moves upwards as image number increases ).
How can i do it. Please any one guide me to do this task.
Below images are for your reference (how i wanted to).
As you can see in the image1 marked region, pixels in the image1. Now see the last image marked region is there itself (marked region fixed) but pixels in last image is moved upwards(color portion moved upwards (colour might be different )).
Any leads will be much appriciated.
Thanks in adavance
0 Kommentare
Akzeptierte Antwort
Constantino Carlos Reyes-Aldasoro
am 12 Jan. 2023
Ok, the first part of this problem is rather simple, if I understand correctly, you want to select a region of interest in one image and then have the same region in subsequent images. Say your image is
a = randn(200,60);
imagesc(a);
Then you can select a region, say that your area of interest is (20:90,20:30)
so define these as the rows and columns
rows=20:90; columns=20:30;
ROI = a(rows,columns);
imagesc (ROI)
now you only need to do the same to all your images.
Now the second part may not be so trivial depending on what you mean by "tracking". But hope this helps you get started.
5 Kommentare
Constantino Carlos Reyes-Aldasoro
am 13 Jan. 2023
OK, so select one ROI in the first frame with roipoly(), then run a cross correlation as suggested by Image Analyst, that will give you the movement of the ROI (assuming that the ROI is moving and not deforming or changing significantly) and then you can locate the new position of the ROI.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Image Segmentation and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!