private void ReadHeader(DicomHeader dicomheaderreader) { dHR = dicomheaderreader; h = dicomheaderreader.getRows(); w = dicomheaderreader.getColumns(); highBit = dicomheaderreader.getHighBit(); bitsStored = dicomheaderreader.getBitStored(); bitsAllocated = dicomheaderreader.getBitAllocated(); n = bitsAllocated / 8; signed = dicomheaderreader.getPixelRepresentation() == 1; samplesPerPixel = dicomheaderreader.getSamplesPerPixel(); //pixData = dicomheaderreader.getPixels(); ignoreNegValues = true; samplesPerPixel = dicomheaderreader.getSamplesPerPixel(); numberOfFrames = dicomheaderreader.getNumberOfFrames(); dbg("Number of Frames " + numberOfFrames); }