Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MAXBITS defines the image maxinum bits MAXBITS uint16 = 32 )
Functions ¶
This section is empty.
Types ¶
type BitmapFileHeader ¶
type BitmapFileHeader struct {
// contains filtered or unexported fields
}
BitmapFileHeader is for BMP file header
type BitmapInfoHeader ¶
type BitmapInfoHeader struct {
// contains filtered or unexported fields
}
BitmapInfoHeader is for BMP info header
type DcmImage ¶
type DcmImage struct { Rows uint32 Columns uint32 PixelWidth float64 PixelHeight float64 BitsAllocated uint16 BitsStored uint16 HighBit uint16 PhotometricInterpretation string SamplesPerPixel uint16 PixelRepresentation uint16 // PlanarConfiguration uint16 RescaleIntercept float64 RescaleSlope float64 WindowCenter float64 WindowWidth float64 IsReverse bool IsCompressed bool IsBigEndian bool NumberOfFrames int PixelData []byte // contains filtered or unexported fields }
DcmImage provides the "DICOM image toolkit"
func (DcmImage) ConvertToJPG ¶
ConvertToJPG convert dicom file to jpg file
func (DcmImage) ConvertToPNG ¶
ConvertToPNG convert dicom file to png file.
func (DcmImage) IsMonochrome ¶
IsMonochrome checks whether image is monochrome or not.
Click to show internal directories.
Click to hide internal directories.