public class TranslateImagePositionPatient
extends java.lang.Object
A class to read a set of DICOM files and translate the Image Position (Patient) by a fixed offset.
| Modifier and Type | Class and Description |
|---|---|
protected class |
TranslateImagePositionPatient.OurMediaImporter |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
ourAETitle |
| Constructor and Description |
|---|
TranslateImagePositionPatient(java.lang.String srcPathName,
java.lang.String dstFolderName,
double x,
double y,
double z)
Read a set of DICOM files and translate the Image Position (Patient) by the specified 3D offset.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] arg)
Read a set of DICOM files and translate the Image Position (Patient) by a fixed offset.
|
static Attribute |
translateImagePositionPatient(Attribute aImagePositionPatient,
double x,
double y,
double z) |
static void |
translateImagePositionPatient(AttributeList list,
double normalDistance) |
static void |
translateImagePositionPatient(AttributeList list,
double x,
double y,
double z) |
static void |
translateImagePositionPatientInPlanePositionSequence(SequenceAttribute planePositionSequence,
double x,
double y,
double z) |
public TranslateImagePositionPatient(java.lang.String srcPathName,
java.lang.String dstFolderName,
double x,
double y,
double z)
throws java.io.FileNotFoundException,
java.io.IOException,
DicomException
Read a set of DICOM files and translate the Image Position (Patient) by the specified 3D offset.
Uses the same sub-folder and file names in the destination folder as supplied in the source folder (or parent folder of single source file).
srcPathName - dstFolderName - x - y - z - java.io.FileNotFoundExceptionjava.io.IOExceptionDicomExceptionpublic static Attribute translateImagePositionPatient(Attribute aImagePositionPatient, double x, double y, double z) throws DicomException
DicomExceptionpublic static void translateImagePositionPatientInPlanePositionSequence(SequenceAttribute planePositionSequence, double x, double y, double z) throws DicomException
DicomExceptionpublic static void translateImagePositionPatient(AttributeList list, double x, double y, double z) throws DicomException
DicomExceptionpublic static void translateImagePositionPatient(AttributeList list, double normalDistance) throws DicomException
DicomExceptionpublic static void main(java.lang.String[] arg)
Read a set of DICOM files and translate the Image Position (Patient) by a fixed offset.
Uses the same sub-folder and file names in the destination folder as supplied in the source folder.
arg - [XYZ x y z|NORMALDISTANCE d] srcPathName dstFolderName