karansher / computer-graphics-raster-images

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

many complicated edge cases for demosaic? #68

Open kevin-j-wang opened 2 years ago

kevin-j-wang commented 2 years ago

hello, not sure if my approach is incorrect but does anybody else have an awfully tedious amount of edge (literally) cases for demosaic? as in I have to make a separate if block for if the pixel is on the top, bottom, left, right edge and even more separate cases for the each of the corners. After getting tired of debugging each of these cases I'm wondering if there is a cleaner solution and if so, any hints for it.

Alternatively, if I just ignored the edge (which is only 1 pixel) and left a 1 pixel black border, would it matter that much for marks.