![]() But actually none of this is necessary if we take the right approach. This becomes a little more complex when the target pixel is on one of the edges of the image because we need to guard against out of bounds issues if we try and access pixel values outside of the image. ![]() ![]() We obtain the 3×3 or 5×5 grid of pixels surrounding the target pixel, multiply each value by the value of the corresponding position within the matrix, and then add them all together. The maths itself that we need to calculate the value of each pixel is relatively simple. In this article we’ll turn our attention to how to perform these transformations on Android. Previously we looked at the theory behind convolution matrices and saw how we can achieved some quite varied effects by applying different matrices to our images.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |