Ask Your Question

doriad's profile - activity

2015-06-27 16:19:59 -0600 commented answer seamlessClone runtime proportional to image size?

Yea, I was assuming what was happening was that the derivatives were being computed for the whole image even though they were only needed in the masked region. Should I report this as a bug somewhere?

2015-06-27 08:50:29 -0600 received badge  Student (source)
2015-06-27 06:32:28 -0600 asked a question seamlessClone runtime proportional to image size?

I have been playing with the new seamlessClone function in OpenCV3. Of course the runtime is proportional to the size of the hole that is selected. However, I've found that with a fixed hole size, when the size of the image increases, the runtime increases substantially. For example, if I fill a 200x200 hole in a 500x500 image, it takes < 1 second. Then if I fill a 200x200 hole in a 3000x3000 image, it takes 20 seconds. (The 500x500 was a cropped version of the 3000x3000 so that the hole and source could be identical for testing to make sure it wasn't a function of the data in the hole, etc.). Can anyone confirm this behavior?

Thanks,

David