Package com.pixelmed.apps
Class RotateFlipSetOfImages
- java.lang.Object
-
- com.pixelmed.apps.RotateFlipSetOfImages
-
public class RotateFlipSetOfImages extends java.lang.ObjectA class containing an application for rotating and/or flipping a set of images and updating the other attributes accordingly.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classRotateFlipSetOfImages.OurMediaImporter
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdstFolderNameprotected booleanhorizontal_flipprotected java.lang.StringourAETitleprotected introtationprotected booleanupdate_orientation
-
Constructor Summary
Constructors Constructor Description RotateFlipSetOfImages(int rotation, boolean horizontal_flip, boolean update_orientation, java.lang.String src, java.lang.String dstFolderName, MessageLogger logger)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcorrectImageOrientationPatient(AttributeList list, int rotation, boolean horizontal_flip)static voidcorrectPatientOrientation(AttributeList list, int rotation, boolean horizontal_flip)static double[]invertDirectionOfColumnVector(double[] vImageOrientationPatient)static double[]invertDirectionOfRowVector(double[] vImageOrientationPatient)static voidmain(java.lang.String[] arg)Rotating and/or flipping a set of images and updating the other attributes accordingly.static voidsetDerived(AttributeList list, int rotation, boolean horizontal_flip, boolean update_orientation)static double[]swapRowAndColumnVectors(double[] vImageOrientationPatient)
-
-
-
Constructor Detail
-
RotateFlipSetOfImages
public RotateFlipSetOfImages(int rotation, boolean horizontal_flip, boolean update_orientation, java.lang.String src, java.lang.String dstFolderName, MessageLogger logger) throws java.io.IOException, DicomException- Throws:
java.io.IOExceptionDicomException
-
-
Method Detail
-
setDerived
public static void setDerived(AttributeList list, int rotation, boolean horizontal_flip, boolean update_orientation) throws DicomException
- Throws:
DicomException
-
correctPatientOrientation
public static void correctPatientOrientation(AttributeList list, int rotation, boolean horizontal_flip) throws DicomException
- Throws:
DicomException
-
swapRowAndColumnVectors
public static double[] swapRowAndColumnVectors(double[] vImageOrientationPatient)
-
invertDirectionOfRowVector
public static double[] invertDirectionOfRowVector(double[] vImageOrientationPatient)
-
invertDirectionOfColumnVector
public static double[] invertDirectionOfColumnVector(double[] vImageOrientationPatient)
-
correctImageOrientationPatient
public static void correctImageOrientationPatient(AttributeList list, int rotation, boolean horizontal_flip) throws DicomException
- Throws:
DicomException
-
main
public static void main(java.lang.String[] arg)
Rotating and/or flipping a set of images and updating the other attributes accordingly.
- Parameters:
arg- array of 5 strings - rotation (0, 90, 180 or 270 degrees), horizontal flip (Y or N), update orientation (Y or N), source folder or DICOMDIR, destination folder
-
-