How to implement a similar function photoshop "patch tool"?

I need to automatically remove the barcode in the T-Shirt image, like the attached file:

barcode http://img546.imageshack.us/img546/2888/codel.jpg

I know that I can do this manually in Photoshop using the โ€œpatch toolโ€ function, which replaces the cropped area from the image in the environment, but I need to either implement the code for this, or get the SDK in Delphi to support this process automatically, passing functions points (X, Y) of the edges of the barcode.

Does anyone have any ideas?

+7
source share
1 answer

Since you already have a barcode position, you can automatically generate a mask and perform Navier-Stokes Image Recovery .

An example in Mathematica:

enter image description here

+9
source

All Articles