Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>If you image is not a square power of two, pixel mixing will have artifacts.

I've implemented it generally by weighing the pixels by the actual area overlapping so border pixels get weights <1.0 for non power of two reductions. Haven't seen any artifacts from it.



That can be generalized to a filter kernel.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: