Display dicom image using flash AGAL(Molehill)
due removal of pixel bender in flash(from 11.8 onwards think) forced @ adobe flash agal(molehill) display dicom images. using pixel bender windowing of dicom images(these 16 bit grayscale). adobe had advised in forum move on molehill looks there no 1 one mapping. here pixel bender code used use.
input image1 src;
output pixel3 dst;
parameter int windowwidth;
parameter int min;
parameter bool inverted;
parameter bool bitalloc;
void
evaluatepixel()
{
float gray;
if(bitalloc)
gray = float(0xffff)*sample(src, outcoord()) ;
else
gray = float(0xff)*sample(src, outcoord());
int pi = (int(255.0*gray) -255*min)/windowwidth;
gray = float(pi)/float(0xff) ;
if(inverted) gray = 1.0 - gray;
dst = pixel3(gray,gray,gray);
}
my questions can similar doing pixel bender in molehill. if not can use molehill display dicom images. pointers help. newbie graphics low-level programming. pointers in displaying bytearray data in molehill should me in starting. in advance time , patience.
More discussions in ActionScript 3
adobe
Comments
Post a Comment