Marking landmarks in image and determining real time distance panned by camera based on pixel value
2 views (last 30 days)
Show older comments
I am using a camera to make recordings of the mouse cortex through the skull, but need to focus on certain areas. To find the area of interest, I need to know where I am relative to anatomical landmarks. I would be interested in seeing how far i travel from an easy to identify region anatomical region such as the bregma, to give me a more exact position of the location I am imaging.
Since the field of view of the camera is far smaller than the whole brain, I want to create a preview of my video, mark a spot in the brain in my preview as 0,0, and be able to pan the camera, for example 5 mm to the right, and keep track of how far the camera has panned relative to this spot by showing me real time updates of distance travleled.
This would mean that original spot would be out of frame and I need to somehow continously identify landmarks and keep track of how many pixels my image moved. Since I know how many pixels a mm corrosponds, the exact distance panned should be easy to calculate.
an example picture for context: https://imgur.com/a/GW3sHMJ
0 Comments
Answers (1)
Image Analyst
on 9 Aug 2020
This is what I see, and why we prefer that you attach the image here instead of on third party sites:
It's all black.
Perhaps you could use imregister() or imregcorr() or imregtform() to find out how much the camera shifted from one frame to the next.
5 Comments
Image Analyst
on 14 Aug 2020
You can hire the Mathworks to speed up your algorithm if it's really important to you. Otherwise you'll just have to live with it. I don't have the time to delve into it for you. Sorry.
See Also
Categories
Find more on Geometric Transformation and Image Registration 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!