karansher / computer-graphics-raster-images

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

Demosaic edges problem(last row and last column) #81

Closed cccccz closed 6 months ago

cccccz commented 1 year ago

image

  1. should the output look like this? image
  2. I tried really hard to fix the last row and the last column but I really don't know how to fix it. I tried for 3 hours but I get vector subscript out of range every time. I feel so sad right now.....
abhimadan commented 1 year ago

I don't entirely understand what issue you're running into based on the two images you posted. Are your edge pixels completely black, or are you getting a mosaic pattern on some of the outer edges? Either way, it suggests a bug, since you should get a somewhat reasonable value if you follow the same principles as demosaicing the interior pixels. However, don't worry too much if you feel that you've wasted a lot of time on it, since you will still get most of the marks for that part of the assignment if the interior of the image looks good.

cccccz commented 1 year ago

I think the problem is: when I try to access the bottom line and the last column, i went out of boundary somewhere

cccccz commented 1 year ago

I don't entirely understand what issue you're running into based on the two images you posted. Are your edge pixels completely black, or are you getting a mosaic pattern on some of the outer edges? Either way, it suggests a bug, since you should get a somewhat reasonable value if you follow the same principles as demosaicing the interior pixels. However, don't worry too much if you feel that you've wasted a lot of time on it, since you will still get most of the marks for that part of the assignment if the interior of the image looks good.

ty!