go2com

package module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

README

go2com

DICOM image parser

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MappedTag added in v0.1.2

type MappedTag map[string]tag.TagBrowser

func (MappedTag) GetElementByTagString added in v0.1.2

func (m MappedTag) GetElementByTagString(tagStr string) (interface{}, error)

GetElementByTagString returns the element value of the input tag Tag should be in (gggg,eeee) or ggggeeee format

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser implements the field required to parse the dicom file

func NewParser

func NewParser(fileReader io.Reader, fileSize int64, skipPixelData, skipDataset bool) (*Parser, error)

NewParser returns a new dicom parser

func (*Parser) Export

func (p *Parser) Export(exportMeta bool) MappedTag

Export returns the mapped tag/(vr,value) dictionary

func (*Parser) GetDataset

func (p *Parser) GetDataset() dataset.Dataset

GetDataset returns the dataset

func (*Parser) GetElementByTagString added in v0.1.2

func (p *Parser) GetElementByTagString(tagStr string) (interface{}, error)

GetElementByTagString returns the element value of the input tag Tag should be in (gggg,eeee) or ggggeeee format

func (*Parser) GetMetadata

func (p *Parser) GetMetadata() dataset.Dataset

GetMetadata returns the file meta header

func (*Parser) Parse

func (p *Parser) Parse() error

Directories

Path Synopsis
cmd
tag
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL