Generate gray code pattern sequence images, time-coded light patterns , used in structured light.
This simple project is inspired by Gray code pattern sequence and use grays function in Gray Code Manipulation.
- Create
./output/directory. - Modify the input value
resolutioninCreateAndSaveGraySeq.m, which specifies the output pattern image's size. - Choose
GrayCodePattern4ProjectorCalibration(resolution)orGrayCodePattern(resolution)function inCreateAndSaveGraySeq.m. - Run
CreateAndSaveGraySeq.min Matlab. - Get the gray code pattern sequence in
./output/directory.
You can get general gray code pattern sequence with the resolution you want.
These images(1024 x 768) generated in ./output/ directory can be used directly in this paper Projector-Camera Calibration / 3D Scanning Software. An opposite image of each pattern is also be generated in order to improve the accuracy in the projector calibration.
1024 x 768 patterns are in output/ .