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

3 visualizaciones (últimos 30 días)
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

Respuestas (1)

Image Analyst
Image Analyst el 9 de Ag. de 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 comentarios
John Doe
John Doe el 14 de Ag. de 2020
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 el 14 de Ag. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Geometric Transformation and Image Registration en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by