For anyone who may come across this in the future, I ended up removing the extra pixels with the following code. (Note: Will not work on images with 0s in RGB values in non-overlapping areas, however unlikely that may be, since it will set those to black)
if true
for i = 1 : size(greenBandRegistered,1)
for j = 1 : size(greenBandRegistered,2)
if redBandRegistered(i, j) == 0
greenBandRegistered(i,j) = 0;
blueBandRegistered(i,j) = 0;
irBandImage(i,j) = 0;
end
if greenBandRegistered(i, j) == 0
redBandRegistered(i,j) = 0;
blueBandRegistered(i,j) = 0;
irBandImage(i,j) = 0;
end
if blueBandRegistered(i, j) == 0
redBandRegistered(i,j) = 0;
greenBandRegistered(i,j) = 0;
irBandImage(i,j) = 0;
end
end
end
end
