Remove Non Overlapping Pixels In Stitched Image
Afficher commentaires plus anciens
Hey there, I'm unsure of how best to approach how to remove pixels that aren't overlapping (pixels from only one of the images) in my stitched images. An example is below, where you can see very obvious green / blue only sections which I am trying to remove.
Originally I have the three separated RGB images, and I combine them with the code below. (The optimizer and metrics are set, and the irBandImage is another image in the set, but is not part of this RGB image.)
if true
greenBandRegistered = imregister(greenBandImage, irBandImage, 'Rigid', optimizer, metric);
blueBandRegistered = imregister(blueBandImage, irBandImage, 'Rigid', optimizer, metric);
redBandRegistered = imregister(redBandImage, irBandImage, 'Rigid', optimizer, metric);
uint16CombinedImage = cat(3, redBandRegistered, greenBandRegistered, blueBandRegistered);
end

Any ideas on how to remove the non overlapping areas? I'm thinking if the average RGB values are less than 5 or something than to set the whole thing to 0, but I'm not sure how well this would work.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Processing and Computer Vision dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!