2020-12-04 15:15:49 -0600 | received badge | ● Notable Question (source) |
2019-10-22 04:09:30 -0600 | received badge | ● Popular Question (source) |
2017-03-30 10:56:02 -0600 | commented answer | Blender with transparent background Thanks , but I ended up not using FeatherBlender at all. I used split and merge to set my mask (after a little dilation and blurring) as the alpha channel of the source image. Seems to work well enough. |
2017-03-30 05:36:38 -0600 | asked a question | Blender with transparent background Is there a way to use a blender (e.g.: the FeatherBlender) but generating an output image with a transparent background? I am trying to use (or abuse) the FeatherBlender to copy an image with a mask, but I want to smooth the edges a bit, like the feather tool in Photoshop. The mask was generated with the grabcut algorithm. I want to smooth the edges a bit, since they are a bit jagged. Thanks |
2017-03-30 05:32:23 -0600 | received badge | ● Enthusiast |
2017-03-10 05:00:13 -0600 | commented question | Grabcut mask values Turns out the cause of most of my issues was in the coordinates I was feeding to grabCut. After I fixed them most of my issues went away. Other lessons learned:
Thanks for the help @LBerger, it helped me a lot. Here is my updated block from above: https://gist.github.com/pcardoso/5ecc... |
2017-03-09 05:47:06 -0600 | commented question | Grabcut mask values I'm sure I miss a lot here, there are some things I cannot understand in the Python example (grabcut.py). First, the mask seems to be initialized to zeros (BG), but the comment says PR_BG: Then, on each iteration, the bgdmodel and fgdmodel are cleared. Why? Thanks for the help! |
2017-03-09 04:44:10 -0600 | commented question | Grabcut mask values Updated the question with more information. |
2017-03-09 04:43:48 -0600 | received badge | ● Editor (source) |
2017-03-08 12:41:15 -0600 | asked a question | Grabcut mask values The documentation for GrabCut says this about the mask parameter:
The first time I invoke grabCut it runs successfully and the mask is initialised. But the second time I do it, using the mask and mode == GC_INIT_WITH_MASK, I get the following error:
The values in the mask matrix are either 0 or 255, when I was expecting 0-3. Does this make sense? I am doing anything wrong? Update: I am using version 3.2.0 for the iPhone. The crash does not happen if I replace pixels with 255 with 1 (GC_FGD), but then all I get is a completely transparent image. Here is my main code block, in Objective C. Some ivar and properties (i.e., _mask and self.mask are the same thing. |