Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug whith slycing to get the bay_img in lfp_decoder #34

Open
gor-g opened this issue Feb 6, 2023 · 1 comment
Open

bug whith slycing to get the bay_img in lfp_decoder #34

gor-g opened this issue Feb 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@gor-g
Copy link

gor-g commented Feb 6, 2023

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)

@hahnec hahnec added the enhancement New feature or request label Feb 7, 2023
@hahnec
Copy link
Owner

hahnec commented Feb 7, 2023

Thanks for proposing this solution. Please feel free to change the code and send a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants