Voxel Calibration Wizard

Table Of Contents

Previous topic

views package

This Page

wizard package

Submodules

wizard.CalibrationCaptureData

class wizard.CalibrationCaptureData.CalibrationDataCapturePage(calibrationWizard)[source]

Bases: wizard.CalibrationPage.CalibrationPage

This code is used for live capture

This code captures data and calibrates, saving files into the profile path. Profile path = /path/to/.Voxel/profiles.

BUTTON_TEXTS = {'lens': ['Capture Far View', 'Capture Near View', 'Capture Common Phase OFfset Data', 'Capture Per Pixel Data', 'Calibrate'], 'perPixel': ['Capture Pixel Data', 'Calibrate'], 'commonPhase': ['Capture Phase Data', 'Capture Phase Data for Second Modulation Frequency', 'Capture Per Pixel Offset Data', 'Calibrate']}
MESSAGE_TEXTS = {'lens': ["Point the depth camera flat to a wall. Make sure you only see the flat wall in the camera view below and nothing else. This will be for far view capture. Later you'll need to capture near view. Now, for far view click on the capture button.", 'Maintain the depth camera orientation to the flat wall but move it closer. Make sure you only see the flat wall in the camera view below and nothing else. Now, click on the capture button to the right.', 'Capture Data for Common Phase and Per Pixel Offset Calculation. ', 'Capture Data for Per Pixel Offset Calculation', "Great! You've got all views captured. Now, click on the calibrate button to compute the calibration coefficents."], 'perPixel': ['Point the camera to a flat wall and capture data for calculating per pixel offsets.', 'Great! you have all the data captured. CLick on calibrate. '], 'commonPhase': ['Point the depth camera flat to a wall. Make sure you only see the flat wall in the camera view below and nothing else.', 'dealias_en is turned on. Please click on capture to record data with the second modulation frequency.', 'Capture Data for Per Pixel Offset Calculation', 'All views captured. Click on calibrate to calibrate']}
STATE_COMMON_PHASE_CAPTURED = 3
STATE_FAR_CAPTURED = 2
STATE_NEAR_CAPTURED = 1
STATE_PER_PIXEL_CAPTURED = 4
STATE_START = 0
STRATEGY = 'FlatWall'
calibrate()[source]
captureData(value)[source]
captureDataAndCalibrate()[source]
cleanupPage(*args, **kwargs)[source]
closeEvent(*args, **kwargs)[source]
initializePage(*args, **kwargs)[source]
isComplete(*args, **kwargs)[source]
setDistance(value)[source]
setNumberOfFrames(value)[source]
startCapture()[source]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x000000001C62C048>
stopCapture()[source]

wizard.CalibrationCommonPhase

class wizard.CalibrationCommonPhase.CalibrationCommonPhasePage(calibrationWizard)[source]

Bases: wizard.CalibrationPage.CalibrationPage

Returns the common phase offsets for a particular chipset

Uses a vxl file of a flat wall and returns the common phase offset. The file can be recorded using Voxel Viewer.

Parameters:
-dealias_en: If the parameter dealias_en is true or false -fileName1: VXL file pointing to the flat wall, captured using voxel viewer -modFreq1: Modulation Frequency 1, corresponding to the frequency used in fileName1 -distance: Distance of the camera from the flat wall -fileName2: VXL file pointing to the flat wall, captured using voxel viewer -modFreq2: Modulation Frequency 2, corresponding to the frequency used in fileName2

Note

If dealias_en is true, capture the first vxl using the following method for saving vxl files:
  • Open Voxel Viewer
  • Set ind_freq_data_en True
  • Set ind_freq_data_sel as False
  • Capture data (at least 200 frames)

For second modulation frequency, turn ind_freq_data_sel to True and capture data again.

  • Make sure that the distance of the camera does not change while capturing data
FlatWall()[source]
FlatWallCalib()[source]
calibrate()[source]
cleanupPage(*args, **kwargs)[source]
getValues(value)[source]
initializePage()[source]
isComplete(*args, **kwargs)[source]
selectFileDialog(key)[source]
showSecondFrequency()[source]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x000000001C5E8148>

wizard.CalibrationConclusionsPage

class wizard.CalibrationConclusionsPage.CalibrationConclusionPage(calibrationWizard, parent=None)[source]

Bases: PySide.QtGui.QWizardPage

This is the final page of the wizard. The collected data is saved as a conf file in this page

initializePage(*args, **kwargs)[source]
setParam(section, name, value)[source]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x000000001C5D0AC8>

wizard.CalibrationHDRCommonPhaseOffset

class wizard.CalibrationHDRCommonPhaseOffset.CalibrationHDRCommonPhasePage(calibrationWizard)[source]

Bases: wizard.CalibrationCommonPhase.CalibrationCommonPhasePage

CalibrationHDRCommonPhasePage: This page is similar to CalibrationCommonPhasePage. HDR coefficients are required when HDR is enabled.

calibrate()[source]
initializePage()[source]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x000000001C5E8808>

wizard.CalibrationInitPage

class wizard.CalibrationInitPage.CalibrationInitPage(calibrationWizard, editIndex=-1, parent=None)[source]

Bases: PySide.QtGui.QWizardPage

Initial Calibration Wizard Page. Here you can select the calibrations to perform

addCalibs(title, state)[source]
isComplete()[source]
makeConnections()[source]
selectChipsetType(i)[source]
selectConfFile()[source]
setCameraProfileGroupBox()[source]
setDepthCamera()[source]
setParentProfile(index)[source]
setProfileName()[source]
setProfileNameLocal()[source]
showHideNewProfileName(index)[source]
showNewProfileName()[source]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x0000000006127E08>
validatePage()[source]

wizard.CalibrationLensPage

class wizard.CalibrationLensPage.CalibrationImage(imageFile, calibrationLensPage)[source]

Bases: PySide.QtGui.QListWidgetItem

computeCorners()[source]
showCorners()[source]
class wizard.CalibrationLensPage.CalibrationLensPage(calibrationWizard)[source]

Bases: wizard.CalibrationPage.CalibrationPage

Calibration Lens page for computation of the lens parameters

CheckerBoard()[source]
CheckerBoardCalib()[source]
FlatWall()[source]
FlatWallCalib()[source]
addImage(image)[source]
calibrate()[source]
calibratedImagesKeyPressEvent(event)[source]
cleanupPage(*args, **kwargs)[source]
deleteImage()[source]
getValues()[source]
initializePage()[source]
populateImages()[source]
selectFileDialog(key)[source]
setCalibParams(mtx, dist)[source]
setCalibrateButton()[source]
setDirectory()[source]
setDistanceValues(value)[source]
setLayout()[source]
setValues(value)[source]
showContextMenu(point)[source]
showImage(item=None)[source]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x000000001C5D0A88>

wizard.CalibrationNonLinearityPage

class wizard.CalibrationNonLinearityPage.CalibrationNonLinearityPage(calibrationWizard)[source]

Bases: wizard.CalibrationPage.CalibrationPage

Wizard page for non linearity calibration

Takes CSV file as input and gives non linearity coefficients as output

CSV_FILE_NAME = 'non-linearity.csv'
calibrate()[source]
cleanupPage(*args, **kwargs)[source]
getData()[source]
importCSV(csvFile=None)[source]
initializePage()[source]
insertRow()[source]
isComplete()[source]
removeAllRows()[source]
removeRow()[source]
setChipsetParams()[source]
setModFrequency(value)[source]
setModFrequency2(value)[source]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x000000001C5E8708>
writeCSV(data, csvFile)[source]
class wizard.CalibrationNonLinearityPage.CalibrationNonLinearityTableDelegate(parent=None)[source]

Bases: PySide.QtGui.QItemDelegate

staticMetaObject = <PySide.QtCore.QMetaObject object at 0x000000001C5E86C8>

wizard.CalibrationPage

class wizard.CalibrationPage.CalibrationPage[source]

Bases: PySide.QtGui.QWizardPage

clearLayout(layout)[source]
isComplete(*args, **kwargs)[source]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x00000000065E4A88>

wizard.CalibrationPerPixelOffsetPage

class wizard.CalibrationPerPixelOffsetPage.CalibrationPerPixelOffsetPage(calibrationWizard)[source]

Bases: wizard.CalibrationPage.CalibrationPage

calibrate()[source]
cleanupPage(*args, **kwargs)[source]
initializePage()[source]
selectFileDialog()[source]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x000000001C5DCCC8>

wizard.CalibrationSelectPage

class wizard.CalibrationSelectPage.CalibrationSelectPage(calibrationWizard)[source]

Bases: PySide.QtGui.QWizardPage

buttonClicked(key, id)[source]
cleanupPage(*args, **kwargs)[source]
clearLayout(layout)[source]
initializePage()[source]
setDataLabelText()[source]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x0000000006127EC8>

wizard.CalibrationTemperaturePage

class wizard.CalibrationTemperaturePage.CalibratePhaseTableDelegate(parent=None)[source]

Bases: PySide.QtGui.QItemDelegate

createEditor(parent, option, index)[source]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x000000001C5DCAC8>
class wizard.CalibrationTemperaturePage.CalibrationTemperaturePage(calibrationWizard)[source]

Bases: wizard.CalibrationPage.CalibrationPage

CSV_FILE_NAME = 'temperature-phase-offset.csv'
MAX_PHASE_VALUE = 4096
calibrate()[source]
getData()[source]
importCSV(csvFile=None)[source]
initializePage()[source]
insertRow()[source]
isComplete()[source]
removeAllRows()[source]
removeRow()[source]
staticMetaObject = <PySide.QtCore.QMetaObject object at 0x000000001C5DCB48>
wrapPhaseToSignedInteger(phase)[source]
writeCSV(data, csvFile)[source]

contents