Class ImageStitcher


  • public class ImageStitcher
    extends Object
    The Class ImageStitcher.
    • Constructor Detail

      • ImageStitcher

        public ImageStitcher()
    • Method Detail

      • stitchImagePartitionsFromLocalFile

        public static boolean stitchImagePartitionsFromLocalFile​(String imageTilePath,
                                                                 int resolutionX,
                                                                 int resolutionY,
                                                                 int zoomLevel,
                                                                 int partitionOnX,
                                                                 int partitionOnY)
                                                          throws Exception
        Stitch image partitions from local file.
        Parameters:
        imageTilePath - the image tile path
        resolutionX - the resolution X
        resolutionY - the resolution Y
        zoomLevel - the zoom level
        partitionOnX - the partition on X
        partitionOnY - the partition on Y
        Returns:
        true, if successful
        Throws:
        Exception - the exception
      • stitchImagePartitionsFromS3File

        public static boolean stitchImagePartitionsFromS3File​(String regionName,
                                                              String accessKey,
                                                              String secretKey,
                                                              String bucketName,
                                                              String imageTilePath,
                                                              int resolutionX,
                                                              int resolutionY,
                                                              int zoomLevel,
                                                              int partitionOnX,
                                                              int partitionOnY)
                                                       throws Exception
        Stitch image partitions from S 3 file.
        Parameters:
        regionName - the region name
        accessKey - the access key
        secretKey - the secret key
        bucketName - the bucket name
        imageTilePath - the image tile path
        resolutionX - the resolution X
        resolutionY - the resolution Y
        zoomLevel - the zoom level
        partitionOnX - the partition on X
        partitionOnY - the partition on Y
        Returns:
        true, if successful
        Throws:
        Exception - the exception
      • stitchImagePartitionsFromHadoopFile

        public static boolean stitchImagePartitionsFromHadoopFile​(String imageTilePath,
                                                                  int resolutionX,
                                                                  int resolutionY,
                                                                  int zoomLevel,
                                                                  int partitionOnX,
                                                                  int partitionOnY)
                                                           throws Exception
        Stitch image partitions from hadoop file.
        Parameters:
        imageTilePath - the image tile path
        resolutionX - the resolution X
        resolutionY - the resolution Y
        zoomLevel - the zoom level
        partitionOnX - the partition on X
        partitionOnY - the partition on Y
        Returns:
        true, if successful
        Throws:
        Exception - the exception