I need help compensating for image bias when trying to create a grid with one image and apply it on another

I have two images of yeast plates:

allowing:

alt text

Xgal:

alt text

Images should be in the same place and approximately the same size. I am trying to use one of the images to create a grid, and then apply this grid to another image. The grid is made by looking at the colonies on the resolving plate, there should be 1536 colonies on the plate. The problem is that the camera that was used to capture the images moves slightly up and down, and the images can also move slightly due to the fact that the other plate is not exactly in the same place.

This means that when I use the resolution plate to generate the grid on the xgal plate, the grid shifts. Does anyone know how I can compensate for this? I am using perl with the gd module. Any advice would be greatly appreciated. Thanks you

+6
perl image-processing gd
source share
2 answers

I did this in other languages ​​in relation to motion analysis. You can mathematically determine the position shift between two images using cross-correlation.

Fortunately, you may not need to do the math :) You can use something like ImageMagick, which provides many image processing functions for you and is a perl script. Independent scripts already exist for tasks very similar to yours - see .

+1
source share

If you have only a few pairs of images, and, as in the examples, they are very different in appearance, then an alternative method to Tim Barras will be

  • Open the first image in gimp, find the coordinates of the sign function
  • Open the second image in gimp, find the coordinates of the same landmark.
  • Calculate offset
  • Move the second image using the ImageMagick convert command with the affine option. Set sx = sy = 1.0, rx = ry = 0.0, tx = negative horizontal offset, ty = negative vertical offset
+1
source share

All Articles