function imageOut = ReconstructChannel(imageIn, components, num) coef = components' * double(imageIn); components = components(:,1:num); coef = coef(1:num); imageOut = uint8(round(components * coef));