CHAPTER 5. STEREO VISION
35
I
Locate the images used by the
Compute Depth Image
VI: Back up one level
to the
examples\Vision
subfolder, identify the VI
IMAQ Vision Example
folder
, and open and run the VI to see the folder where NI Vision has installed
all of its sample images. Navigate to this folder, open the
Stereo Vision
subfolder, and take a look at the images in each of the four subfolders for the
two stereo cameras. Note that the calibration folders contain five different views
of a dot grid calibration target. Also, can you observe the difference (disparity)
between the left and right camera views of the wooden blocks images?
5.6
Compute a Depth Image (Static Images)
I
Run the
Compute Depth Image
VI that you located earlier. See the video
tutorial
“Compute Depth Image” Example VI
to get a sense of what you should
expect to see.
1
What is the distance from the camera to poster board on which the blocks
rest?
2
What is the thickness of a block?
3
What is the tallest pile of blocks that you could find in all available stereo
image pairs?
5.7
Compute a Depth Image (Live Images)
I
Print the dot grid on a laser printer: Open the NI Vision installation folder,
e.g.,
C:\Program Files (x86)\National Instruments\Vision
, open
the
Documentation
subfolder, and then open the
CalibrationGrid.pdf
file. Choose the “Actual size” option when printing. Measure the distances
between the alignment marks in both the horizontal and vertical directions to
confirm that the dot grid has been printed accurately.
I
Trim the grid to make a 20
×
15 array of dots, and then affix to a piece of
foam-core board or similar material. The board must be as flat as possible to
ensure accurate camera calibration.
(3:35)
Summary of Contents for NI myRIO
Page 1: ...Ed Doering NI myRIO Vision Essentials Guide...
Page 2: ......
Page 11: ...Part I Machine Vision Fundamentals...
Page 12: ......
Page 31: ...Part II Introductory Machine Vision Projects...
Page 32: ......
Page 38: ...32 CHAPTER 4 CAMERA SETUP...
Page 44: ...38 CHAPTER 5 STEREO VISION...
Page 61: ...Part III Machine Vision Application Projects...
Page 62: ......
Page 72: ...66 CHAPTER 8 COIN COUNTER...
Page 86: ...80 CHAPTER 10 KEYED OPTICAL LOCK...
Page 92: ...86 CHAPTER 11 DMM TEST STAND...
Page 134: ...128 CHAPTER 17 MARBLE SORTER...
Page 135: ...Part IV Appendices...
Page 136: ......
Page 143: ...B MXPandMSPConnectorDiagrams Figure B 1 MXP myRIO eXpansion Port connector diagram...
Page 144: ...138 APPENDIX B MXP AND MSP CONNECTOR DIAGRAMS Figure B 2 MSP miniSystem Port connector diagram...
Page 148: ...142 APPENDIX D BUILD A STAND ALONE APPLICATION...
Page 149: ...E MarbleSorterConstructionDetails To be continued...
Page 150: ...144 APPENDIX E MARBLE SORTER CONSTRUCTION DETAILS...