Documentation ¶
Index ¶
- Constants
- Variables
- func Dictionary(r io.Reader) func(*Parser) error
- type DicomElement
- type DicomFile
- func (di *DicomFile) Discard(in <-chan DicomMessage, done *sync.WaitGroup)
- func (di *DicomFile) Log(in <-chan DicomMessage, done *sync.WaitGroup) <-chan DicomMessage
- func (file *DicomFile) LookupElement(name string) (*DicomElement, error)
- func (di *DicomFile) Parse(buff []byte) error
- func (di *DicomFile) WriteImagesToFolder(in <-chan DicomMessage, done *sync.WaitGroup, folder string) <-chan DicomMessage
- func (di *DicomFile) WriteToFile(in <-chan DicomMessage, done *sync.WaitGroup, file *os.File) <-chan DicomMessage
- type DicomMessage
- type Parser
Constants ¶
View Source
const ( JPEG_2000 = "1.2.840.10008.1.2.4.91" JPEG_BASELINE_1 = "1.2.840.10008.1.2.4.50" )
Variables ¶
View Source
var ( ErrIllegalTag = errors.New("Illegal tag found in PixelData") ErrTagNotFound = errors.New("Could not find tag in dicom dictionary") ErrBrokenFile = errors.New("Invalid DICOM file") ErrOddLength = errors.New("Encountered odd length Value Length") ErrUndefLengthNotAllowed = errors.New("UC, UR and UT may not have an Undefined Length, i.e.,a Value Length of FFFFFFFFH.") )
Errors
Functions ¶
Types ¶
type DicomElement ¶
type DicomElement struct { Group uint16 Element uint16 Name string Vr string Vl uint32 Value []interface{} // Value Multiplicity PS 3.5 6.4 IndentLevel uint8 P uint32 // contains filtered or unexported fields }
A DICOM element
func (*DicomElement) GetValue ¶
func (e *DicomElement) GetValue() string
type DicomFile ¶
type DicomFile struct {
Elements []DicomElement
}
func (*DicomFile) Discard ¶
func (di *DicomFile) Discard(in <-chan DicomMessage, done *sync.WaitGroup)
Discard messages
func (*DicomFile) Log ¶
func (di *DicomFile) Log(in <-chan DicomMessage, done *sync.WaitGroup) <-chan DicomMessage
Logs dicom elements
func (*DicomFile) LookupElement ¶
func (file *DicomFile) LookupElement(name string) (*DicomElement, error)
Lookup a tag by name
func (*DicomFile) WriteImagesToFolder ¶
func (di *DicomFile) WriteImagesToFolder(in <-chan DicomMessage, done *sync.WaitGroup, folder string) <-chan DicomMessage
Writes pixel data to folder
func (*DicomFile) WriteToFile ¶
func (di *DicomFile) WriteToFile(in <-chan DicomMessage, done *sync.WaitGroup, file *os.File) <-chan DicomMessage
Writes dicom elements to file
type DicomMessage ¶
type DicomMessage struct {
// contains filtered or unexported fields
}
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func NewParser ¶
Create a new parser, with functional options for configuration http://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis
Click to show internal directories.
Click to hide internal directories.