Class RotateFlipSetOfImages


  • public class RotateFlipSetOfImages
    extends java.lang.Object

    A class containing an application for rotating and/or flipping a set of images and updating the other attributes accordingly.

    • Field Detail

      • ourAETitle

        protected java.lang.String ourAETitle
      • dstFolderName

        protected java.lang.String dstFolderName
      • rotation

        protected int rotation
      • horizontal_flip

        protected boolean horizontal_flip
      • update_orientation

        protected boolean update_orientation
    • 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.IOException
        DicomException
    • Method Detail

      • swapRowAndColumnVectors

        public static double[] swapRowAndColumnVectors​(double[] vImageOrientationPatient)
      • invertDirectionOfRowVector

        public static double[] invertDirectionOfRowVector​(double[] vImageOrientationPatient)
      • invertDirectionOfColumnVector

        public static double[] invertDirectionOfColumnVector​(double[] vImageOrientationPatient)
      • 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