Generate size-adjustable uniform grid for spatial calibration

3 views (last 30 days)
Hi, everyone,
I took a tiff image of a dot array on a piece of white paper, the resolution of the camera is 1280 x 800.
After I use imread to read in and use imshow to show the tiff image in Matlab, I am now trying to generate a 2-D uniform grid and add it to the image.
In this way, I will have a better understand of the relative pixel location for each dot on the paper. Then I can calibrate the relationship between the pixel location (i,j)and spatial location(x,y).
Besides, if possible, I need to make one unit grid containing 6-8 pixels, and make the grid size adjustable in case I need to adjust the size for better calibration.
Now I am stuck in generating this size-adjustable 2-D uniform grid.
Can anyone help me please?
Thank you for your kind help

Accepted Answer

Image Analyst
Image Analyst on 1 Sep 2014
I don't know why you'd need to generate a grid. Just calibrate against an object of known length in your scene. See my attached demo.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!