summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/cam_helper.hpp
AgeCommit message (Expand)Author
2022-03-23ipa: raspberrypi: cam_helper: Make exposure conversion functions virtualNaushir Patuck
2021-08-09libcamera: Rename 'method' to 'function'Laurent Pinchart
2021-08-05ipa: raspberrypi: Add sensitivity field to camera modeDavid Plowman
2021-06-30ipa: raspberrypi: Generalise the SMIA metadata parserNaushir Patuck
2021-06-30ipa: raspberrypi: Use a unique_ptr for the metadata parserNaushir Patuck
2021-06-25libcamera/base: Move span to base libraryKieran Bingham
2021-06-25libcamera/base: Move extended base functionalityKieran Bingham
2021-06-25libcamera/base: Move utils to the base libraryKieran Bingham
2021-06-08ipa: raspberrypi: Switch ipa and cam_helper to use utils::DurationNaushir Patuck
2021-05-08ipa: raspberrypi: Use CamHelpers to generalise sensor embedded data parsingDavid Plowman
2021-04-27ipa: cam_helper: Correct a wrong choice of termSebastian Fricke
2021-04-15ipa: raspberrypi: cam_helper: Remove duplicate wordsSebastian Fricke
2021-03-09ipa: raspberrypi: Make CamHelpers return the frame delay for vblankingDavid Plowman
2021-02-05ipa: raspberrypi: Limit the calculated vblank based on the sensor modeNaushir Patuck
2021-01-20libcamera: raspberrypi: Add control of sensor vblankingNaushir Patuck
2020-09-29ipa: raspberrypi: Rename the controller namespace from Rpi to RpiControllerNaushir Patuck
2020-07-17ipa: raspberrypi: Drop CameraHelper::GetOrientation()Laurent Pinchart
2020-05-16libcamera: Move internal headers to include/libcamera/internal/Laurent Pinchart
2020-05-11libcamera: ipa: Raspberry Pi IPANaushir Patuck
mac_norm = np.array((c1, c2, c3, c4), np.float32) mac_norm = np.array([mac_norm]) square_verts = [] square_0 = np.array(((0, 0), (0, side), (side, side), (side, 0)), np.float32) offset_0 = np.array((b_bord_x, b_bord_y), np.float32) c_off = side * c_err offset_cont = np.array(((c_off, c_off), (c_off, -c_off), (-c_off, -c_off), (-c_off, c_off)), np.float32) square_0 += offset_0 square_0 += offset_cont """ define macbeth square corners """ for i in range(6): shift_i = np.array(((i*side, 0), (i*side, 0), (i*side, 0), (i*side, 0)), np.float32) shift_bord = np.array(((i*s_bord, 0), (i*s_bord, 0), (i*s_bord, 0), (i*s_bord, 0)), np.float32) square_i = square_0 + shift_i + shift_bord for j in range(4): shift_j = np.array(((0, j*side), (0, j*side), (0, j*side), (0, j*side)), np.float32) shift_bord = np.array(((0, j*s_bord), (0, j*s_bord), (0, j*s_bord), (0, j*s_bord)), np.float32) square_j = square_i + shift_j + shift_bord square_verts.append(square_j) # print('square_verts') # print(square_verts) return np.array(square_verts, np.float32), mac_norm def get_square_centres(c_err=0.05, scale=scale): """ define macbeth square centres """ verts, mac_norm = get_square_verts(c_err, scale=scale) centres = np.mean(verts, axis=1) # print('centres') # print(centres) return np.array(centres, np.float32)