i have an image named imageA…imageA has some portion colored black.
now i want to replace this Black portion of the imageA with the pixels of imageB , in such a way that location of portion is same in other image.
like if the position of black pixel in imageA=(10,15) , than this black pixel should be replaced with the pixel at the location (10,15) in imageB .
Use Logical Indexing.
You might need some extra error checking code to ensure that the logical matrix
zeropixelsis valid for indexing imageB.