Class ImageBox
- Namespace
- FellowOakDicom.Printing
- Assembly
- fo-dicom.core.dll
Color or gray scale basic image box
public class ImageBox : DicomDataset, IEnumerable<DicomItem>, IEnumerable, IEquatable<DicomDataset>
- Inheritance
-
ImageBox
- Implements
- Inherited Members
- Extension Methods
Constructors
ImageBox(FilmBox, DicomUID, DicomUID)
Construct new ImageBox for specified filmBox using specified SOP class UID and SOP instance UID
public ImageBox(FilmBox filmBox, DicomUID sopClass, DicomUID sopInstance)
Parameters
filmBox
FilmBoxFilm box in which image box should be constained.
sopClass
DicomUIDSOP Class UID for the image.
sopInstance
DicomUIDSOP instance UID for the image.
Fields
BORDER
protected const float BORDER = 7.874016
Field Value
ColorSOPClassUID
Basic color image box SOP
public static readonly DicomUID ColorSOPClassUID
Field Value
GraySOPClassUID
Basic gray scale image box SOP
public static readonly DicomUID GraySOPClassUID
Field Value
Properties
ConfigurationInformation
Character string that contains either the ID of the printer configuration table that contains a set of values for implementation specific print parameters (e.g. perception LUT related parameters) or one or more configuration data values, encoded as characters. If there are multiple configuration data values encoded in the string, they shall be separated by backslashes. The definition of values shall be contained in the SCP's Conformance Statement.
public string ConfigurationInformation { get; set; }
Property Value
Remarks
Defined Terms:
Note: It is recommended that for SCPs, CS000 represent the lowest contrast and CS999 the highest contrast levels available.
FilmBox
public FilmBox FilmBox { get; }
Property Value
ImageBoxPosition
Gets or sets the position of the image on the film, based on image display format. See C.13.5.1 for specification.
public ushort ImageBoxPosition { get; set; }
Property Value
ImageSequence
Gets or sets the color or grayscale basic image sequence
public DicomDataset ImageSequence { get; set; }
Property Value
MagnificationType
Interpolation type by which the printer magnifies or decimates the image in order to fit the image in the image box on film
public string MagnificationType { get; set; }
Property Value
Remarks
Defined Terms:
- REPLICATE
- BILINEAR
- CUBIC
- NONE
MaxDensity
Maximum density of the images on the film, expressed in hundredths of OD. If Max Density is higher than maximum printer density than Max Density is set to maximum printer density.
public ushort MaxDensity { get; set; }
Property Value
MinDensity
Minimum density of the images on the film, expressed in hundredths of OD. If Min Density is lower than minimum printer density than Min Density is set to minimum printer density.
public ushort MinDensity { get; set; }
Property Value
Polarity
Specifies whether minimum pixel values (after VOI LUT transformation) are to printed black or white.
public string Polarity { get; set; }
Property Value
Remarks
Enumerated Values:
If Polarity (2020,0020) is not specified by the SCU, the SCP shall print with NORMAL polarity.
RequestedDecimateCropBehavior
Specifies whether image pixels are to be decimated or cropped if the image rows or columns is greater than the available printable pixels in an Image Box.
public string RequestedDecimateCropBehavior { get; set; }
Property Value
Remarks
Decimation means that a magnification factor <1 is applied to the image. The method of decimation shall be that specified by Magnification Type (2010,0060) or the SCP default if not specified.
Cropping means that some image rows and/or columns are deleted before printing.
Enumerated Values:
- DECIMATEa magnification factor <1 to be applied to the image.
- CROPsome image rows and/or columns are to be deleted before printing. The specific algorithm for cropping shall be described in the SCP Conformance Statement.
- FAILthe SCP shall not crop or decimate
RequestedImageSize
Width (x-dimension) in mm of the image to be printed. This value overrides the size that corresponds with optimal filling of the Image Box.
public double RequestedImageSize { get; set; }
Property Value
SOPClassUID
Image box SOP class UID
public DicomUID SOPClassUID { get; }
Property Value
SOPInstanceUID
Image box SOP instance UID
public DicomUID SOPInstanceUID { get; }
Property Value
SmoothingType
Further specifies the type of the interpolation function. Values are defined in Conformance Statement. Only valid for Magnification Type (2010,0060) = CUBIC
public string SmoothingType { get; set; }
Property Value
Methods
Clone(FilmBox)
Clone the current IamgeBox and return new object
public ImageBox Clone(FilmBox filmBox)
Parameters
filmBox
FilmBox
Returns
- ImageBox
Cloned ImageBox
Load(FilmBox, string)
Load image box for a specified filmBox
from a specified file.
public static ImageBox Load(FilmBox filmBox, string imageBoxFile)
Parameters
Returns
- ImageBox
Image box for a specified
filmBox
from a file namedimageBoxFile
.
Save(string)
Save the image box contents to file.
public void Save(string imageBoxFile)
Parameters
imageBoxFile
stringName of the image box file.