Tag: Samples

Down Sampling an Image

This is a very small and quick example to show how to down size an image to an 8 bit image and resize down to ¼ of the size (50% each dimension). DicomImage NewImage = (DicomImage)OrigImage.Clone(true); // copy the image DicomImage TempImage = OrigImage.PrinterImage(8, 1, false, ((float)0.5), new Rectangle(new Point(0,0),OrigImage.Size), true); for each (DicomAttribute a in TempImage.DataSet) // copy the attributes of the Temp image into the new image NewImage.

Continue reading..

We use cookies to give you the best possible experience on our website. By continuing to use this website, you agree with our use of cookies. for more information please click HERE