hi folks,
thanks for your earlier help on getting my grubby hands on those elusive
pixel values. much of this works now, but one stubborn problem remains.
if you help me with the last part then i can post this as a demo for a
nice video tracker on my webpage.
i am using the basic bones of the SGDataProcDemo which handles calling
the data proc and decomressing the image via a DSequence into the
QDGraohics of the main frame. in my case this main frame has a number of
visual components aside from the QTCanvas (that displays the life
video). i wanted to intercept the decompressed image before it gets
blipped to the on-screen port. if my understanding is right then the
following strategy ought to work.
within the dataproc i think the DSequence decompresses the incoming
frames from the videograbber first into an offscreen port - the pixmap
of which can be accessed via
PixMap bMap = myDSequence.getImageBuffer().getPixMap();
and the RawEncodedImage via
RawEncodedImage anEncImage = aMap.getPixelData();
so far so good but the size of this structure is too small by a factor
of 10
when i get an ImageDescription from the PixMap
ImageDescription imageDesc = new ImageDescription(bMap);
System.out.println(imageDesc.toString());
I get the following
quicktime.std.image.ImageDescription[cType=2vuy,temporalQuality=0,
spatialQulity=512,width=360,height=240,dataSize=184320,frameCount=0,name
=,depth=24]
"dataSize=184320" even though 320 x 240 x 24 = 1,843,200
what gives?
i a;so assume that all pixel values are unsigned bytes and i should get
the actual color value for the individual pixels via
System.out.println(bEncImage.getByte(i)); // black=0; white=255;
right?
thanks a stack for any insight you can provide
stay well, gobble gobble ...
Robert Huber, Ph.D.
Associate Professor
Bowling Green State Univ, Biological Sciences
Life Sciences Building, Bowling Green, OH 43403
http://caspar.bgsu.edu/~neuro/faculty/Faculty_rhuber.shtml
Email: email@hidden
Tel: USA (419) 372-7492 (office)
Tel: USA (419) 372-7368 (lab)
Fax: USA (419) 372-2024
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-java mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-java/email@hidden
This email sent to email@hidden