#include #include #include #include #include void drawBlankEdges(float *dataArray, int xdim, int ydim, Param &par) { /** * drawBlankEdges(float *dataArray, int xdim, int ydim, Param &par) * * A subroutine that is designed to draw (in tasteful purple) the * edges of the blank region of the cube on a moment/detection map. * Uses the same procedure as used in the reconstruction subroutines. * Needs a pgplot device open! * INPUTS: dataArray -- the array of pixel values * xdim, ydim -- the sizes of the array in the x- and y- directions * par -- how we know what a BLANK pixel value is. */ if(par.getFlagBlankPix()){ if(!cpgtest()) duchampError("drawBlankEdges","There is no PGPlot device open!\n"); else{ float xoff,x2,yoff,y2; cpgqwin(&xoff,&x2,&yoff,&y2); bool *blank = new bool[xdim*ydim]; for(int i=0;i