1

I'm trying to perform image recognition via a SIFT algorithm using solid shapes.

To improve the performance, I would like to take the image (captured from an iOS camera), make all non-light colors a dark red and make the remaining pixels transparent.

An example of a before and after of what I'm trying to achieve is attached in the images on this question.

Assumption: the images are always solid-black shapes and printed on plain white paper

Can someone please help me with this or point me in the right direction?enter image description here

jscs
  • 63,694
  • 13
  • 151
  • 195
dpigera
  • 3,339
  • 5
  • 39
  • 60

1 Answers1

1

As provided in this code, you can simply iterate over the pixel data and compare each color of the pixel with the value you want to filter. But before you should maybe apply some filters for better results.

Community
  • 1
  • 1
Quxflux
  • 3,133
  • 2
  • 26
  • 46