|
Values read from texture incorrect?
Stefan van der Heijden (Stefan.vdHeijden@best.ms.philips.com)
Hello you all I made a function to determine the histogram of a volume I created a volume with 8 blocks of 16*16*16 with greyvalues varying for 15 to 255 When i call the determine_histogram function(see below) the result showns no values lower then 127,although i see in the volumeview the values the values in the volume which are lower then 127 are summed with the values higher then 127 (e.g. greyvalue 15 is summed in 127+15) When in do the same thing to the raw data before i write it to the texture the histogram is correct. Does anybody have an id how to get the job done??? regards stefan
void Determine_Histogram()
int xBrickOrigin, yBrickOrigin, zBrickOrigin;
void *vdata = brick->getDataPtr();
for ( i =0 ;i<xBrickSize*yBrickSize*zBrickSize;i++)
}
-- J.W.M v/d Heijden -oOo-@-@-oOo- XRD Predevelopment Philips Medical Systems Building QJ2327, Veenpluis 2, Best, The Netherlands Phone: +31-40-2762275 Fax : +31-40-2765657 mailto:Stefan.vdHeijden@best.ms.philips.com http://members.xoom.com/AxeCrazy Just a memory remains....
This archive was generated by hypermail 2.0b2 on Mon Nov 01 1999 - 14:11:13 PST |
|
made by Digital Vintage with nginx-s3-gateway and some magic digitalvintage.ru t.me/digitalvintage_ru instagram.com/digitalvintage.ru |