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