How can I correct the misplaced lines of this image?

1 view (last 30 days)
Dear Matlab friends
I am working with some images taken from the brainstem of mice. As you can see below, the lines(rows) of the images have been misplaced (due to a technical problem in the recording set up). I mean the lines need to be shifted to right or left a bit to match each other. You can see it by focusing on the edges of the circle. I need to correct this to get the exact shape of those bright spots and get the highest possible correlation of the pixels. but I do not know how to do it.
which programming steps should I take? Are there any known methods for a problem like this?
please guide me
thank you all
payman

Accepted Answer

Image Analyst
Image Analyst on 28 Jan 2015
I would talk with the camera manufacturer to find out how to solve the technical problem with the recording. It's probably much easier and better to avoid the problem in the first place than to try and fix it.
  3 Comments
Image Analyst
Image Analyst on 29 Jan 2015
It looks like the line-to-line noise is just in the outer area. You can mask that out because it's going to be in the same place every time. For the stuff in the center, it looks pretty good to me - I don't see line shifting. If you want you can go down line by line correlating each line to the one above and below it and find the average of the two shifts, then shift the line by that amount, say with circshift.
payman khayree
payman khayree on 29 Jan 2015
thanks. I think ill do the line by line correlation.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!