Hi,
I?m trying to extract an image out of the "one colored" background.
This is what I came up with:
1. take a small square of each corner and calculate the
rgb average of them
2. scan every pixel of the image, if the current pixel value
is "close enough" to the average value, replace it with the
transparent colour / value.
Ok, nothing difficult here. But I don`t know what would be
a simple and a good way to avoid these:
1. What if the object in the picture contains sama colour as the background? How to avoid that?
2. How to antialize / blur / or similar the edges. The edges become very pixelated
Thanks
I?m trying to extract an image out of the "one colored" background.
This is what I came up with:
1. take a small square of each corner and calculate the
rgb average of them
2. scan every pixel of the image, if the current pixel value
is "close enough" to the average value, replace it with the
transparent colour / value.
Ok, nothing difficult here. But I don`t know what would be
a simple and a good way to avoid these:
1. What if the object in the picture contains sama colour as the background? How to avoid that?
2. How to antialize / blur / or similar the edges. The edges become very pixelated
Thanks