I am using the WARP command to display my image as a texture-mapped surface. I set the 'AlphaData' to a custom alpha data and 'AlphaDataMapping' to 'None'. However the figure transparency is not set.
I = imread('rice.png');[h,w,d] = size(I);[X,Y] = meshgrid(1:w,1:h);alphaVal = X / w;figure(1); clf; h=warp(I);set(gcf,'renderer','opengl'); set(h,'AlphaData',alphaVal,'AlphaDataMapping','none');
Best Answer