Question

has anyone used JavaCV ?

I am trying to achieve a blur around the margins of a custom shaped figure which is actually an image with transparency around that figure? I keep getting this error each time I use the blur() function : java.lang.RuntimeException: vector::_M_fill_insert, still I used cvSmooth but it just blurs the entire image... so is there any way in JavaCV you can add feathering or some kind of blurring around a custom shaped image... it is a pretty huge library with a lot of functions ... so I figured it has to offer something...

I haven't found any kind of documentation for JavaCV ...

Thank you.

Was it helpful?

Solution

  1. Create a copy of Src Image cvCloneImage()
  2. Blur the clone image cvSmooth()
  3. Add srcImage to blued Image cvAdd()
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top