Versions in this module Expand all Collapse all v0 v0.4.0 Jun 27, 2019 Changes in this version type Parser + func NewParserFromDecoder(decoder *dicomio.Decoder, frameChannel chan *frame.Frame) (Parser, error) + func NewUninitializedParserFromDecoder(decoder *dicomio.Decoder, frameChannel chan *frame.Frame) Parser v0.3.0 Oct 16, 2018 Changes in this version + const GoDICOMImplementationClassUIDPrefix + const GoDICOMImplementationVersionName + const InvalidDay + const InvalidMonth + const InvalidYear + var GoDICOMImplementationClassUID = GoDICOMImplementationClassUIDPrefix + ".1.1" + func WriteDataSet(out io.Writer, ds *DataSet) error + func WriteDataSetToFile(path string, ds *DataSet) error + func WriteElement(e *dicomio.Encoder, elem *Element) + func WriteFileHeader(e *dicomio.Encoder, metaElems []*Element) + type DataSet struct + Elements []*Element + func (f *DataSet) FindElementByName(name string) (*Element, error) + func (f *DataSet) FindElementByTag(tag dicomtag.Tag) (*Element, error) + type DateInfo struct + Day int + Month int + Str string + Year int + func ParseDate(s string) (startDate, endDate DateInfo, err error) + func (d DateInfo) String() string + type DirectoryRecord struct + Path string + func ParseDICOMDIR(in io.Reader) (recs []DirectoryRecord, err error) + type Element struct + Tag dicomtag.Tag + UndefinedLength bool + VR string + Value []interface{} + func FindElementByName(elems []*Element, name string) (*Element, error) + func FindElementByTag(elems []*Element, tag dicomtag.Tag) (*Element, error) + func MustNewElement(tag dicomtag.Tag, values ...interface{}) *Element + func NewElement(tag dicomtag.Tag, values ...interface{}) (*Element, error) + func Query(ds *DataSet, f *Element) (match bool, matchedElem *Element, err error) + func (e *Element) GetString() (string, error) + func (e *Element) GetStrings() ([]string, error) + func (e *Element) GetUInt16() (uint16, error) + func (e *Element) GetUInt32() (uint32, error) + func (e *Element) GetUint16s() ([]uint16, error) + func (e *Element) GetUint32s() ([]uint32, error) + func (e *Element) MustGetString() string + func (e *Element) MustGetStrings() []string + func (e *Element) MustGetUInt16() uint16 + func (e *Element) MustGetUInt32() uint32 + func (e *Element) MustGetUint16s() []uint16 + func (e *Element) MustGetUint32s() []uint32 + func (e *Element) String() string + type EncapsulatedFrame struct + Data []byte + type Frame struct + EncapsulatedData EncapsulatedFrame + IsEncapsulated bool + NativeData NativeFrame + type NativeFrame struct + BitsPerSample int + Cols int + Data [][]int + Rows int + type ParseOptions struct + DropPixelData bool + ReturnTags []dicomtag.Tag + StopAtTag *dicomtag.Tag + type Parser interface + DecoderError func() error + Finish func() error + Parse func(options ParseOptions) (*DataSet, error) + ParseNext func(options ParseOptions) *Element + func NewParser(in io.Reader, bytesToRead int64, frameChannel chan *Frame) (Parser, error) + func NewParserFromBytes(data []byte, frameChannel chan *Frame) (Parser, error) + func NewParserFromFile(path string, frameChannel chan *Frame) (Parser, error) + type PixelDataInfo struct + Frames []Frame + IsEncapsulated bool + Offsets []uint32 + func (data PixelDataInfo) String() string