Package com.pixelmed.apps
Class TranslateImagePositionPatient
java.lang.Object
com.pixelmed.apps.TranslateImagePositionPatient
A class to read a set of DICOM files and translate the Image Position (Patient) by a fixed offset.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTranslateImagePositionPatient(String srcPathName, 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. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidRead a set of DICOM files and translate the Image Position (Patient) by a fixed offset.static voidtranslateImagePositionPatient(AttributeList list, double normalDistance) static voidtranslateImagePositionPatient(AttributeList list, double x, double y, double z) static AttributetranslateImagePositionPatient(Attribute aImagePositionPatient, double x, double y, double z) static voidtranslateImagePositionPatientInPlanePositionSequence(SequenceAttribute planePositionSequence, double x, double y, double z)
-
Field Details
-
ourAETitle
-
-
Constructor Details
-
TranslateImagePositionPatient
public TranslateImagePositionPatient(String srcPathName, String dstFolderName, double x, double y, double z) throws FileNotFoundException, 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).
- Parameters:
srcPathName-dstFolderName-x-y-z-- Throws:
FileNotFoundExceptionIOExceptionDicomException
-
-
Method Details
-
translateImagePositionPatient
public static Attribute translateImagePositionPatient(Attribute aImagePositionPatient, double x, double y, double z) throws DicomException - Throws:
DicomException
-
translateImagePositionPatientInPlanePositionSequence
public static void translateImagePositionPatientInPlanePositionSequence(SequenceAttribute planePositionSequence, double x, double y, double z) throws DicomException - Throws:
DicomException
-
translateImagePositionPatient
public static void translateImagePositionPatient(AttributeList list, double x, double y, double z) throws DicomException - Throws:
DicomException
-
translateImagePositionPatient
public static void translateImagePositionPatient(AttributeList list, double normalDistance) throws DicomException - Throws:
DicomException
-
main
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.
- Parameters:
arg- [XYZ x y z|NORMALDISTANCE d] srcPathName dstFolderName
-