alphawarp

Drapes a semi-transparent and possibly distorted image over a figure.

This can be used to display a variable on top of a background image.

  USAGE: h=alphawarp(x,y,c,alpha)

  EXAMPLE:

  P=imread('peppers.png');
  P=repmat(mean(im2double(P),3),[1 1 3]);%make a (gray) RGB-image so that it does not influence colorbar
  image(P);
  [X,Y]=meshgrid(100:300,100:300);
  X=X+Y*.1;
  Z=peaks((X-150)/100,(Y-150)/100);
  alphawarp(X,Y,Z,.5);