RuntimeError: filter weights array has incorrect shape. #57
Replies: 4 comments 3 replies
-
Hi Juergen, Is it possible to print the value of Cheers, Thomas |
Beta Was this translation helpful? Give feedback.
-
Hi Thomas, Sorry for the late answer. Sure it is possible: RGGB It's a normal not debayered image from my astro camera, which shoots using RGGB bayer pattern and has a resolution of 4168x6224 pixels. I think the third shape value is the number of color values and this would be the expected value 1, because it's not debayered, so it's still a grayscale image. Please let me know which other information you require. It would be really helpful to have a chance to debayer these images within my tool I want to make public for the astrophotography community. Regards, |
Beta Was this translation helpful? Give feedback.
-
Thanks, Thomas. Unfortunately, it still crashes with the same error. File "/Users/jt/PycharmProjects/ImageSessionAnalysis/FitsImage.py", line 76, in createDisplayImage Might be something unexpected deeper inside. I can upload an image if you are interested. Regards, |
Beta Was this translation helpful? Give feedback.
-
Thank you, Thomas! Now it works!! |
Beta Was this translation helpful? Give feedback.
-
I'm a newbie in python programming, so maybe I'm doing something wrong. However, there are only limited parameters for these functions. I'm trying this:
self.imageData = demosaicing_CFA_Bayer_bilinear(self.imageData, self.fits_header['BAYERPAT'])
self.imageData is a numpy array from a fits image (CFA RGGB) and it is in linear state, the numpy array is of type float32. I tried all functions and always get this error. I don't see any filter weights array to be passed as parameter. What is my mistake?
Thanks in advance,
Juergen
Beta Was this translation helpful? Give feedback.
All reactions