Remove Non Overlapping Pixels In Stitched Image
显示 更早的评论
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.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Image Arithmetic 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!