The fact is one of the most important code in image processing is filtering, and filters comes in many forms. The following is a filter using Threshold method of RGB colors, and below shows Green Thresold filterd image.
Looking forward to see your contributions, feel free to contact me anytime :).
*Threshold Filtered Image