I am working on an algorithm to match the centroids of bacteria using computer vision.
As I\'m an undergraduate and beginner to computer vision, I do not have code specif
This seems to be an easy calibration problem.
Find two corresponding points left and right (i.e. the same points in the real world). If your setup is fixed, you can do that "manually" and once for all. You may have to add markers for this purpose (or use two distant bacteria centers that you match visually). If the setup is not fixed, add the markers anyway and design them so that they are easy to locate by image processing.
Now you have a simple linear relation between the left and right coordinates by solving
XR = a XL + b
for the two points. Then using one of the points to find c
,
YR = a YL + c
holds.
Now knowing a
, b
, c
, every point on the left can be mapped to the right. From your sample images, I have determined that
a ~ 1.128
b ~ 773
c ~ -16
very grossly.
Do not attempt any kind of matching of the shapes, rely on the geometric transformation of the coordinates.