Skip to content

Commit

Permalink
fixup! Add PixelMapping
Browse files Browse the repository at this point in the history
  • Loading branch information
torbsorb committed Dec 15, 2023
1 parent 4c25ea5 commit a44f5db
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/experimental/test_pixel_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ def test_pixel_mapping(file_camera):
assert pixel_mapping_handle.row_offset == 0.0
assert pixel_mapping_handle.col_offset == 0.0

blueSubsample2x2_settings = Settings()
blueSubsample2x2_settings.acquisitions.append(Settings.Acquisition())
blueSubsample2x2_settings.sampling.pixel = Settings.Sampling.Pixel.blueSubsample2x2
pixel_mapping_handle = pixel_mapping(camera=file_camera, settings=blueSubsample2x2_settings)
blue_subsample2x2_settings = Settings()
blue_subsample2x2_settings.acquisitions.append(Settings.Acquisition())
blue_subsample2x2_settings.sampling.pixel = Settings.Sampling.Pixel.blueSubsample2x2
pixel_mapping_handle = pixel_mapping(camera=file_camera, settings=blue_subsample2x2_settings)
assert pixel_mapping_handle.row_stride == 2
assert pixel_mapping_handle.col_stride == 2
assert pixel_mapping_handle.row_offset == 0.0
assert pixel_mapping_handle.col_offset == 0.0

redSubsample2x2_settings = Settings()
redSubsample2x2_settings.acquisitions.append(Settings.Acquisition())
redSubsample2x2_settings.sampling.pixel = Settings.Sampling.Pixel.redSubsample2x2
pixel_mapping_handle = pixel_mapping(camera=file_camera, settings=redSubsample2x2_settings)
red_subsample2x2_settings = Settings()
red_subsample2x2_settings.acquisitions.append(Settings.Acquisition())
red_subsample2x2_settings.sampling.pixel = Settings.Sampling.Pixel.redSubsample2x2
pixel_mapping_handle = pixel_mapping(camera=file_camera, settings=red_subsample2x2_settings)
assert pixel_mapping_handle.row_stride == 2
assert pixel_mapping_handle.col_stride == 2
assert pixel_mapping_handle.row_offset == 1.0
Expand Down

0 comments on commit a44f5db

Please sign in to comment.