Ask Your Question

hexdump's profile - activity

2019-12-01 19:15:37 -0500 received badge  Student (source)
2015-08-30 15:18:39 -0500 received badge  Supporter (source)
2015-08-30 15:18:37 -0500 commented answer Extract parts of an image based on a raster mask?

Thanks for the code, it seems something I must dig

2015-08-29 05:06:05 -0500 commented question Extract parts of an image based on a raster mask?

yes, this is true. The problem is that I tend to dig on things that I don't know how to do. And I have seen this method (the raster image mask)on other games and would like to come up with something like it :). Sorry to be so picky.

2015-08-29 04:20:23 -0500 commented question Extract parts of an image based on a raster mask?

Thaks for yor answers. The main reason to use OpenCV was to achieve a GPU solution. I think my software algoritm could work like this: 1) For all pixels do 2) Go to next pixel and check if transparency==255 or it was used in a previuos flood fill opration 3) If previous is true, return to 1 because we don't want this pxel. If false run a flood fill operation on this pixel and create an sprite from it based on the original image. We must keep a buffer to flag if pixel was used in a flood fill operation previously. Perhaps it could be the same temp buffer where we loaded the raster mask image.

I think this would work but I guess that it would be too slow. This is why I'm looking for a GPU solution using OpenCV.

Cheers.

2015-08-28 23:54:19 -0500 asked a question Extract parts of an image based on a raster mask?

Hi,

First of all I would like to say hi to the community because I'm a newcomer.

I have been reading about openCV for some days and I would like to use it in my jigsaw game (Android and IOS). What I need is to extract parts of an image based on pieces defined in another image (raster mask). The mask could be something like this:

image description

This image is defining just the outlines of each piece at each position. And I would like to cut the image based o this outlines. Can OpenCV help with this? I'm a bit lost right now. My intuition is saying openCV can do this but don't know how to achieve it.

Any help will be greatly appreciated.

Cheers.