Marking landmarks in image and determining real time distance panned by camera based on pixel value

3 次查看(过去 30 天)
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

回答(1 个)

Image Analyst
Image Analyst 2020-8-9
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 个评论
John Doe
John Doe 2020-8-14
I tried rescaling the picture to 1/10 its original size (1920x1200), to speed up the processing time using imresize(I,scale). While this did increase processing time significantly it still takes 10-20 seconds between each frame.
Image Analyst
Image Analyst 2020-8-14
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by