How to generate checkerboard in mm

1 view (last 30 days)
zheden dobryden
zheden dobryden on 28 May 2015
Moved: DGM on 4 May 2023
How can I generate checkerboard in mm? There is only option to create it in pixels. I want to have cell size 30 mm after printing the image.
I = checkerboard(n,p,q)
Is there a way to calculate conversion from mm to pixels and create target checkerboard?

Answers (1)

Amith Kamath
Amith Kamath on 10 Jun 2015
Moved: DGM on 4 May 2023
As far as I know, this isn't something that MATLAB can currently do. The reason is that MATLAB (and most other programs) do not know the physical dimensions of your screen, or the size of paper you're printing on, when creating the image.
Here is what someone at RIT did: http://twiki.cis.rit.edu/twiki/pub/MVRL/Documentation/checkerBoard.m, and your problem is an inverse problem: where you need to find the number of pixels per mm.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!