detection
detection
¶
Vendor auto-detection for DICOM files.
This module provides automatic detection of scanner vendor from DICOM metadata and returns the appropriate parser.
detect_vendor
¶
Detect scanner vendor from DICOM dataset.
| PARAMETER | DESCRIPTION |
|---|---|
dcm
|
DICOM dataset with Manufacturer tag.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
str
|
Vendor name: 'Siemens', 'GE', 'Philips', or 'Unknown'. |
Examples:
get_vendor_parser
¶
Get the appropriate vendor parser for a DICOM dataset.
| PARAMETER | DESCRIPTION |
|---|---|
dcm
|
DICOM dataset to parse.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
VendorParser | None
|
Matching vendor parser, or None if vendor not supported. |
Examples:
extract_vendor_metadata
¶
Extract vendor-specific metadata from DICOM dataset.
This is a convenience function that auto-detects the vendor and extracts metadata using the appropriate parser.
| PARAMETER | DESCRIPTION |
|---|---|
dcm
|
DICOM dataset to parse.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
VendorMetadata
|
Extracted metadata. If vendor is not recognized, returns metadata with only standard DICOM fields. |
Examples:
list_supported_vendors
¶
List all supported scanner vendors.
| RETURNS | DESCRIPTION |
|---|---|
list[str]
|
List of supported vendor names. |