IMG = iat_sift2rgb(SIFTIMG)

iat_sift2rgb maps an 128-channel SIFT-image SIFTIMG to RGB (3-channel) space using a pretrained PCA model, so that a RGB image IMG is obtained. After projecting SIFT pixels to the three most principal components, the RGB channels are obtained by inverting the following mapping:

1st component:  -> R+G+B
2nd component -> R-G
3rd component  -> (R+G)/2-B

Input arguments:

SIFTIMG The input SIFT-image (it has to be of size MxNx128)

Output arguments:

IMG The output color (RGB) image


Back to Index