![]() ![]() Similar to changing the red value, you can set the values for green and blue you can even give a combination of these three values to apply some more color effects on the images. BytesPerPixel)Īs every pixel is represented by an array of length four, which is nothing but imageFrame.BitsPerPixel, we are increasing the loop with the same number. The following code block refers to how you can apply only red color effects on an image stream by just filtering on green and blue (setting 0 for green and blue pixel).įor (int i = 0 i < i += imageFrame. To apply the color effects, or filter on specific color, You can easily iterate through the array and set the value. ![]() The following screenshot shows the color values for blue, green, and red along with the alpha values from an image frame that has been captured using Kinect color camera. ![]() The maximum value of each color is 255 and the minimum is 0. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |