Documentation
¶
Index ¶
- Constants
- Variables
- func OpenDataSetWithTransferSyntaxRecovery(path string, opts ReadFileOptions, recovery TransferSyntaxRecoveryOptions) (*Object, TransferSyntaxResolution, error)
- func OpenDataSetWithValidation(ctx context.Context, path string, syntax transfer.Syntax, ...) (*Object, ValidationReport, error)
- func OpenFileWithTransferSyntaxRecovery(path string, opts ReadFileOptions, recovery TransferSyntaxRecoveryOptions) (*File, TransferSyntaxResolution, error)
- func ReadDataSetWithTransferSyntaxRecovery(r io.Reader, opts ReadFileOptions, recovery TransferSyntaxRecoveryOptions) (*Object, TransferSyntaxResolution, error)
- func ReadDataSetWithValidation(ctx context.Context, r io.Reader, syntax transfer.Syntax, ...) (*Object, ValidationReport, error)
- func ReadFileWithTransferSyntaxRecovery(r io.Reader, opts ReadFileOptions, recovery TransferSyntaxRecoveryOptions) (*File, TransferSyntaxResolution, error)
- func WriteDataSet(w io.Writer, obj *Object, syntax transfer.Syntax) error
- func WriteFile(w io.Writer, file *File) error
- func WriteFileWithOptions(w io.Writer, file *File, opts WriteFileOptions) error
- type DataSetRuleRegistration
- type Dataset
- type Element
- type File
- type Frame
- type FrameMetadata
- type FrameSink
- type Object
- func OpenDataSet(path string, syntax transfer.Syntax) (*Object, error)
- func OpenDataSetWithOptions(path string, syntax transfer.Syntax, opts ReadFileOptions) (*Object, error)
- func ReadDataSet(r io.Reader, syntax transfer.Syntax) (*Object, error)
- func ReadDataSetWithOptions(r io.Reader, syntax transfer.Syntax, opts ReadFileOptions) (*Object, error)
- type ParseOption
- func AllowMismatchPixelDataLength() ParseOption
- func AllowMissingMetaElementGroupLength() ParseOption
- func AllowUnknownSpecificCharacterSet() ParseOption
- func SkipMetadataReadOnNewParserInit() ParseOption
- func SkipPixelData() ParseOption
- func SkipProcessingPixelDataValue() ParseOption
- func StreamFramesTo(sink FrameSink) ParseOption
- type ReadFileOptions
- type TransferSyntaxRecoveryOptions
- type TransferSyntaxResolution
- type TransferSyntaxResolutionSource
- type ValidationFinding
- type ValidationHookChain
- type ValidationHookDecision
- type ValidationHookEvent
- type ValidationHookPoint
- type ValidationHookRegistration
- type ValidationMode
- type ValidationOptions
- type ValidationReport
- type ValidationResult
- type WriteFileOptions
- type WriteValidationError
- type WriteValidationResult
Constants ¶
View Source
const ( ValidationModePreserve = validation.ModePreserve ValidationModeWarn = validation.ModeWarn ValidationModeStrict = validation.ModeStrict TransferSyntaxSourceDeclared = object.TransferSyntaxSourceDeclared TransferSyntaxSourceDeclaredMissingPreamble = object.TransferSyntaxSourceDeclaredMissingPreamble TransferSyntaxSourceInferredRawDataSet = object.TransferSyntaxSourceInferredRawDataSet TransferSyntaxSourceInferredMissingPreamble = object.TransferSyntaxSourceInferredMissingPreamble TransferSyntaxSourceInferredMissingFileMeta = object.TransferSyntaxSourceInferredMissingFileMeta TransferSyntaxSourceInferredMissingUID = object.TransferSyntaxSourceInferredMissingUID TransferSyntaxSourceInferredUnknownUID = object.TransferSyntaxSourceInferredUnknownUID TransferSyntaxSourceRecoveredMismatch = object.TransferSyntaxSourceRecoveredMismatch )
Variables ¶
View Source
var ErrFrameChannelUnsupported = errors.New("dicom: unsupported compatibility Parse frame channel")
View Source
var ErrValidationFailed = validation.ErrValidationFailed
Functions ¶
func OpenDataSetWithTransferSyntaxRecovery ¶
func OpenDataSetWithTransferSyntaxRecovery(path string, opts ReadFileOptions, recovery TransferSyntaxRecoveryOptions) (*Object, TransferSyntaxResolution, error)
func OpenDataSetWithValidation ¶
func OpenDataSetWithValidation(ctx context.Context, path string, syntax transfer.Syntax, readOpts ReadFileOptions, validationOpts ValidationOptions) (*Object, ValidationReport, error)
func OpenFileWithTransferSyntaxRecovery ¶
func OpenFileWithTransferSyntaxRecovery(path string, opts ReadFileOptions, recovery TransferSyntaxRecoveryOptions) (*File, TransferSyntaxResolution, error)
func ReadDataSetWithTransferSyntaxRecovery ¶
func ReadDataSetWithTransferSyntaxRecovery(r io.Reader, opts ReadFileOptions, recovery TransferSyntaxRecoveryOptions) (*Object, TransferSyntaxResolution, error)
func ReadDataSetWithValidation ¶
func ReadDataSetWithValidation(ctx context.Context, r io.Reader, syntax transfer.Syntax, readOpts ReadFileOptions, validationOpts ValidationOptions) (*Object, ValidationReport, error)
func ReadFileWithTransferSyntaxRecovery ¶
func ReadFileWithTransferSyntaxRecovery(r io.Reader, opts ReadFileOptions, recovery TransferSyntaxRecoveryOptions) (*File, TransferSyntaxResolution, error)
func WriteFileWithOptions ¶
func WriteFileWithOptions(w io.Writer, file *File, opts WriteFileOptions) error
Types ¶
type DataSetRuleRegistration ¶
type DataSetRuleRegistration = validation.DataSetRuleRegistration
type Dataset ¶
func Parse ¶
Parse reads a Part 10 stream through the compatibility facade. frameChan may be nil, a chan Frame, or a FrameSink. Frame channels receive native Pixel Data frames synchronously and are closed when reading finishes.
func ParseFile ¶
func ParseFile(path string, frameChan any, opts ...ParseOption) (Dataset, error)
ParseFile reads a Part 10 file from path through the compatibility facade. frameChan follows the same rules as Parse.
func ParseUntilEOF ¶
ParseUntilEOF reads a Part 10 stream until EOF through the compatibility facade. frameChan follows the same rules as Parse.
type File ¶
func OpenFileWithOptions ¶
func OpenFileWithOptions(path string, opts ReadFileOptions) (*File, error)
func ReadFileWithOptions ¶
func ReadFileWithOptions(r io.Reader, opts ReadFileOptions) (*File, error)
type FrameMetadata ¶
type FrameMetadata = object.FrameMetadata
type ParseOption ¶
type ParseOption func(*ReadFileOptions)
func AllowMismatchPixelDataLength ¶
func AllowMismatchPixelDataLength() ParseOption
func AllowMissingMetaElementGroupLength ¶
func AllowMissingMetaElementGroupLength() ParseOption
func AllowUnknownSpecificCharacterSet ¶
func AllowUnknownSpecificCharacterSet() ParseOption
func SkipMetadataReadOnNewParserInit ¶
func SkipMetadataReadOnNewParserInit() ParseOption
func SkipPixelData ¶
func SkipPixelData() ParseOption
func SkipProcessingPixelDataValue ¶
func SkipProcessingPixelDataValue() ParseOption
func StreamFramesTo ¶
func StreamFramesTo(sink FrameSink) ParseOption
type ReadFileOptions ¶
type ReadFileOptions = object.ReadFileOptions
type TransferSyntaxRecoveryOptions ¶
type TransferSyntaxRecoveryOptions = object.TransferSyntaxRecoveryOptions
type TransferSyntaxResolution ¶
type TransferSyntaxResolution = object.TransferSyntaxResolution
type TransferSyntaxResolutionSource ¶
type TransferSyntaxResolutionSource = object.TransferSyntaxResolutionSource
type ValidationFinding ¶
type ValidationFinding = validation.Finding
type ValidationHookChain ¶
type ValidationHookChain = validation.HookChain
func NewValidationHookChain ¶
func NewValidationHookChain(registrations ...ValidationHookRegistration) (*ValidationHookChain, error)
type ValidationHookDecision ¶
type ValidationHookDecision = validation.HookDecision
type ValidationHookEvent ¶
type ValidationHookEvent = validation.HookEvent
type ValidationHookPoint ¶
type ValidationHookPoint = validation.HookPoint
type ValidationHookRegistration ¶
type ValidationHookRegistration = validation.HookRegistration
type ValidationMode ¶
type ValidationMode = validation.Mode
type ValidationOptions ¶
type ValidationOptions = validation.Options
type ValidationReport ¶
type ValidationReport = validation.Report
type ValidationResult ¶
type ValidationResult = validation.Result
func ValidateDataSet ¶
func ValidateDataSet(ctx context.Context, dataset Dataset, opts ValidationOptions) (ValidationResult, error)
type WriteFileOptions ¶
type WriteFileOptions = object.WriteFileOptions
type WriteValidationError ¶
type WriteValidationError = object.WriteValidationError
type WriteValidationResult ¶
type WriteValidationResult = object.WriteValidationResult
func WriteDataSetWithValidation ¶
func WriteDataSetWithValidation(ctx context.Context, w io.Writer, obj *Object, syntax transfer.Syntax, opts ValidationOptions) (WriteValidationResult, error)
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
dcmdump
command
|
|
|
deidtablegen
command
Command deidtablegen projects normative DICOM de-identification tables and code mappings into the compact data sets used by package deid.
|
Command deidtablegen projects normative DICOM de-identification tables and code mappings into the compact data sets used by package deid. |
|
dicom-codec-manifest
command
|
|
|
dicom-go-retrieve
command
|
|
|
dicomdictgen
command
|
|
|
dicomuidgen
command
|
|
|
dicomutil
command
|
|
|
echoscp
command
|
|
|
echoscu
command
|
|
|
findscu
command
|
|
|
jpegxl-inventory
command
|
|
|
storescp
command
|
|
|
storescu
command
|
|
|
Package dcmtime contains functions and data types for converting DICOM date and time values to native go values.
|
Package dcmtime contains functions and data types for converting DICOM date and time values to native go values. |
|
Package deid provides reusable, conservative metadata de-identification helpers for DICOM datasets.
|
Package deid provides reusable, conservative metadata de-identification helpers for DICOM datasets. |
|
Package dicomdir reads DICOMDIR references and builds, validates, queries, and transactionally writes bounded DICOM file-sets.
|
Package dicomdir reads DICOMDIR references and builds, validates, queries, and transactionally writes bounded DICOM file-sets. |
|
Package dictionary defines the minimal data dictionary contract used by implicit-VR decoding.
|
Package dictionary defines the minimal data dictionary contract used by implicit-VR decoding. |
|
std
Package std exposes the generated standard DICOM dictionary.
|
Package std exposes the generated standard DICOM dictionary. |
|
tags
Package tags exposes convenience values for common standard DICOM tags.
|
Package tags exposes convenience values for common standard DICOM tags. |
|
uid
Package uid exposes the generated standard DICOM UID registry.
|
Package uid exposes the generated standard DICOM UID registry. |
|
Package dsa reads the DICOM Mask Module (PS3.3 C.7.6.7): the Mask Subtraction Sequence (0028,6100) that XA/XRF multi-frame objects use to record how live frames should be paired with mask frames for digital subtraction angiography, plus the Recommended Viewing Mode (0028,1090).
|
Package dsa reads the DICOM Mask Module (PS3.3 C.7.6.7): the Mask Subtraction Sequence (0028,6100) that XA/XRF multi-frame objects use to record how live frames should be paired with mask frames for digital subtraction angiography, plus the Recommended Viewing Mode (0028,1090). |
|
Package dynamic separates temporal and spatial dimensions in dynamic DICOM acquisitions.
|
Package dynamic separates temporal and spatial dimensions in dynamic DICOM acquisitions. |
|
Package encapdoc builds DICOM Encapsulated Document objects.
|
Package encapdoc builds DICOM Encapsulated Document objects. |
|
examples
|
|
|
dicom-utilities
command
|
|
|
echo
command
|
|
|
json
command
|
|
|
modalityworklist-scp
command
Command modalityworklist-scp serves a synthetic, in-memory Modality Worklist.
|
Command modalityworklist-scp serves a synthetic, in-memory Modality Worklist. |
|
modalityworklist-scu
command
Command modalityworklist-scu queries a Modality Worklist SCP using the package's typed, streaming client.
|
Command modalityworklist-scu queries a Modality Worklist SCP using the package's typed, streaming client. |
|
ndimse
command
Command ndimse demonstrates one generic N-GET exchange over an in-memory connection.
|
Command ndimse demonstrates one generic N-GET exchange over an in-memory connection. |
|
pixeldata
command
|
|
|
readfile
command
|
|
|
render-roi
command
|
|
|
store
command
|
|
|
writefile
command
|
|
|
Package hangingprotocol decodes DICOM Hanging Protocol Storage objects into a bounded, viewer-neutral representation.
|
Package hangingprotocol decodes DICOM Hanging Protocol Storage objects into a bounded, viewer-neutral representation. |
|
Package index extracts a bounded, detached metadata record from DICOM Part 10 files and explicitly configured raw data sets without materializing bulk payloads.
|
Package index extracts a bounded, detached metadata record from DICOM Part 10 files and explicitly configured raw data sets without materializing bulk payloads. |
|
internal
|
|
|
Package jpip retrieves and decodes pixel streams referenced by DICOM JPIP transfer syntaxes.
|
Package jpip retrieves and decodes pixel streams referenced by DICOM JPIP transfer syntaxes. |
|
Package microscopy models tiled DICOM whole-slide microscopy images without materializing their Total Pixel Matrix.
|
Package microscopy models tiled DICOM whole-slide microscopy images without materializing their Total Pixel Matrix. |
|
net
|
|
|
dicomweb
Package dicomweb provides neutral DICOMweb client and embeddable server primitives for QIDO-RS, WADO-RS, and STOW-RS endpoints.
|
Package dicomweb provides neutral DICOMweb client and embeddable server primitives for QIDO-RS, WADO-RS, and STOW-RS endpoints. |
|
telemetry
Package telemetry defines the safe operational event seam shared by the UL and DIMSE network layers.
|
Package telemetry defines the safe operational event seam shared by the UL and DIMSE network layers. |
|
Package nifti provides NIfTI export primitives.
|
Package nifti provides NIfTI export primitives. |
|
Package parametricmap parses and lazily decodes DICOM Parametric Map instances.
|
Package parametricmap parses and lazily decodes DICOM Parametric Map instances. |
|
Package parser decodes DICOM element streams into tokens and in-memory data sets.
|
Package parser decodes DICOM element streams into tokens and in-memory data sets. |
|
The personname package provides methods and data types for inspecting Person Name (PN) DICOM Value Representations, as defined here:
|
The personname package provides methods and data types for inspecting Person Name (PN) DICOM Value Representations, as defined here: |
|
codecfixture
Package codecfixture builds synthetic DICOM pixel-data conformance cases.
|
Package codecfixture builds synthetic DICOM pixel-data conformance cases. |
|
codecprofile
Package codecprofile describes auditable pixel-codec release profiles.
|
Package codecprofile describes auditable pixel-codec release profiles. |
|
display
Package display implements the DICOM grayscale display pipeline as a small, staged interface that callers can use without sequencing the individual transforms themselves.
|
Package display implements the DICOM grayscale display pipeline as a small, staged interface that callers can use without sequencing the individual transforms themselves. |
|
jpeglossless
Package jpeglossless decodes DICOM JPEG Lossless (ITU-T T.81 process 14, SOF3) encapsulated pixel data: Huffman entropy coding with first-order (and general 1–7) prediction.
|
Package jpeglossless decodes DICOM JPEG Lossless (ITU-T T.81 process 14, SOF3) encapsulated pixel data: Huffman entropy coding with first-order (and general 1–7) prediction. |
|
rle
Package rle provides an optional pure Go codec for DICOM RLE Lossless pixel data, transfer syntax UID 1.2.840.10008.1.2.5.
|
Package rle provides an optional pure Go codec for DICOM RLE Lossless pixel data, transfer syntax UID 1.2.840.10008.1.2.5. |
|
qualification
Package qualification defines PHI-free source fixtures, pre-render transport adapters and evidence contracts shared by renderer qualification harnesses.
|
Package qualification defines PHI-free source fixtures, pre-render transport adapters and evidence contracts shared by renderer qualification harnesses. |
|
Package rtdose parses, validates, samples, and analyses DICOM RT Dose objects.
|
Package rtdose parses, validates, samples, and analyses DICOM RT Dose objects. |
|
Package sr provides typed primitives for DICOM Structured Reporting content.
|
Package sr provides typed primitives for DICOM Structured Reporting content. |
|
Package ultrasound reads and applies DICOM Ultrasound Region Calibration.
|
Package ultrasound reads and applies DICOM Ultrasound Region Calibration. |
|
Package ups implements the DICOM Unified Procedure Step workflows defined by PS3.4 Annex CC.
|
Package ups implements the DICOM Unified Procedure Step workflows defined by PS3.4 Annex CC. |
|
Package validation provides opt-in validation and lifecycle hooks with PHI-redacted diagnostics by default for DICOM elements and data sets.
|
Package validation provides opt-in validation and lifecycle hooks with PHI-redacted diagnostics by default for DICOM elements and data sets. |
|
Package video validates and extracts encapsulated DICOM MPEG-2, AVC/H.264, and HEVC/H.265 media streams without decoding them.
|
Package video validates and extracts encapsulated DICOM MPEG-2, AVC/H.264, and HEVC/H.265 media streams without decoding them. |
|
Package waveform reads and queries calibrated, channel-multiplexed DICOM waveforms.
|
Package waveform reads and queries calibrated, channel-multiplexed DICOM waveforms. |
Click to show internal directories.
Click to hide internal directories.