dilevin / computer-graphics-raster-images

Computer Graphics Assignment about Raster Images
1 stars 7 forks source link

Problem demosaicing the bayer image. #29

Open geoffkylin opened 4 years ago

geoffkylin commented 4 years ago

Hi, I am trying to demosaicing the bayer image, and my resulting image looks like this in the attachment. Image is more green and has low resolution. Image is 0.2MB smaller than other images. Don't have any ideas where I made mistakes. Is there any place I may post a code snippet and get helped on debugging it?

Thank you. demosaicked

geoffkylin commented 4 years ago

Sorry image looks like this: Screenshot at 2020-01-15 18-53-13

songfeil commented 4 years ago

I think there might be some misunderstanding in the demosaic algorithm. The desired output should have the same resolution (height and width) as the input picture (since it's just interpolation of missing information), I suggest refer to the reading materials once more and check potential bugs.