Skip to content

bug whith slycing to get the bay_img in lfp_decoder #34

Description

@gor-g

On raw images taken with a modified Nikon camera, in comp_bayer(), the line a0 = (t0 << 4) + ((t1 & 0xF0) >> 4) gives

(ValueError('operands could not be broadcast together with shapes (13408599,) (13408598,) '),)

i don't really get what bay_img is but if it's the bayer image, you could do self._bay_img = rawpy.imread(self._lfp_path).raw_image.astype('float') innstead of calling self.comp_bayer(). (It uses the rawpy library)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions