示例#1
0
    def setUp(self):
        # create dataset
        self.dataset = DatasetGenerator(height=self._height,
                                        width=self._width,
                                        bit_depth=self._bit_depth,
                                        L=self._L,
                                        steps=self._steps,
                                        radiance_min=self._radiance_min,
                                        exposure_max=self._exposure_max)

        # parse dataset
        self.parser = ParseEmvaDescriptorFile(self.dataset.descriptor_path)
        # load images
        self.loader = LoadImageData(self.parser.images)
        # create data
        self.data = Data1288(self.loader.data)
        # create operation point dict
        self.op = info_op()
示例#2
0
# Marketing information
marketing = report.info_marketing()


# Initialize the report with the marketing data
# Provide a non existent name for the output directory
myreport = report.Report1288('myreport',
                             marketing=marketing,
                             setup=setup,
                             basic=basic)

# Operation point
# bit_depth, gain, black_level, exposure_time, wavelength,
# temperature, housing_temperature, fpn_correction,
# summary_only

op1 = report.info_op()
op1.gain = 0.1
op1.offset = 29.4
op1.bit_depth = '12 bits'
op1.summary_only = False

# Add the operation point to the report
# we can add as many operation points as we want
# we pass the emva1288.Data1288 object to extract automatically all the results
# and graphics
myreport.add(op1, dat)

# Generate the latex files
myreport.latex()
示例#3
0
marketing = report.info_marketing()
marketing['watermark'] = 'Example'

# Initialize the report with the marketing data
# Provide a non existent name for the output directory
myreport = report.Report1288('myreport',
                             marketing=marketing,
                             setup=setup,
                             basic=basic)

# Operation point
# bit_depth, gain, black_level, exposure_time, wavelength,
# temperature, housing_temperature, fpn_correction,
# summary_only

op1 = report.info_op()
op1['summary_only'] = False
op1['camera_settings']['Gain'] = 0.1
op1['camera_settings']['Black level'] = 29.4
op1['camera_settings']['Bit depth'] = '12 bits'
op1['test_parameters']['Illumination'] = 'Variable with constant \
exposure time'

op1['test_parameters']['Irradiation steps'] = 50

# Add the operation point to the report
# we can add as many operation points as we want
# we pass the emva1288.Data1288 object to extract automatically all the results
# and graphics
myreport.add(op1, dat.data)