pub struct FileDicomObject<O> { /* private fields */ }
Expand description

A root DICOM object retrieved from a standard DICOM file, containing additional information from the file meta group in a separate table value.

Implementations§

Create a DICOM object by reading from a file.

This function assumes the standard file encoding structure: 128-byte preamble, file meta group, and the rest of the data set.

Create a DICOM object by reading from a byte source.

This function assumes the standard file encoding structure without the preamble: file meta group, followed by the rest of the data set.

Create a new empty object, using the given dictionary and file meta table.

Create a DICOM object by reading from a file.

This function assumes the standard file encoding structure: 128-byte preamble, file meta group, and the rest of the data set.

Create a DICOM object by reading from a file.

This function assumes the standard file encoding structure: 128-byte preamble, file meta group, and the rest of the data set.

This function allows you to choose a different transfer syntax index, but its use is only advised when the built-in transfer syntax registry is insufficient. Otherwise, please use open_file_with_dict instead.

Create a DICOM object by reading from a byte source.

This function assumes the standard file encoding structure without the preamble: file meta group, followed by the rest of the data set.

Create a DICOM object by reading from a byte source.

This function assumes the standard file encoding structure without the preamble: file meta group, followed by the rest of the data set.

This function allows you to choose a different transfer syntax index, but its use is only advised when the built-in transfer syntax registry is insufficient. Otherwise, please use from_reader_with_dict instead.

Create a new empty object, using the given file meta table.

Retrieve the processed meta header table.

Retrieve a mutable reference to the processed meta header table.

Considerable care should be taken when modifying this table, as it may influence object reading and writing operations.

Retrieve the inner DICOM object structure, discarding the meta table.

Write the entire object as a DICOM file into the given file path. Preamble, magic code, and file meta group will be included before the inner object.

Write the entire object as a DICOM file into the given writer. Preamble, magic code, and file meta group will be included before the inner object.

Write the file meta group set into the given writer.

This is equivalent to self.meta().write(to).

Write the inner data set into the given writer, without preamble, magic code, nor file meta group.

The transfer syntax is selected from the file meta table.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Retrieve a particular DICOM element by its tag.
Retrieve a particular DICOM element by its name.
Retrieve the processed meta information table, if available. Read more
Retrieve a particular DICOM element by its tag.
Retrieve a particular DICOM element by its name.
Retrieve the processed meta information table, if available. Read more

This implementation creates an iterator to the elements of the underlying data set. The attributes in the file meta group are not included.

To obtain an iterator over the meta elements, use meta().to_element_iter().

The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more

This implementation creates an iterator to the elements of the underlying data set, consuming the whole object. The attributes in the file meta group are not included.

To obtain an iterator over the meta elements, use meta().to_element_iter().

The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Implement basic pixeldata encoder/decoder functionality

Return the Rows attribute or None if it is not found

Return the Columns attribute or None if it is not found

Return the SamplesPerPixel attribute or None if it is not found

Return the BitsAllocated attribute or None if it is not set

Return the NumberOfFrames attribute or None if it is not set

Returns the number of fragments or None for native pixel data

Return a specific encoded pixel fragment by index as Vec or None if no pixel data is found

Should return either a byte slice/vector if native pixel data or byte fragments if encapsulated. Returns None if no pixel data is found

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more