function imo = CS4640_convert_CLIP(M,k)
%

im = M(k).f;

[M,N,P] = size(im);
imo = zeros(M,N,3);

for r = 1:M
    for c = 1:N
        try 
            v = reshape(im(r,c,:),[1,3]);
        catch ME
            tch = 0;
        end
        imo(r,c,:) = v;
    end
end
imo = im;
