Package stitching

Class CommonFunctions

java.lang.Object
stitching.CommonFunctions

public class CommonFunctions extends Object
  • Field Details

    • methodList

      public static String[] methodList
    • AVG

      public static final int AVG
      See Also:
    • LIN_BLEND

      public static final int LIN_BLEND
      See Also:
    • MAX

      public static final int MAX
      See Also:
    • MIN

      public static final int MIN
      See Also:
    • RED_CYAN

      public static final int RED_CYAN
      See Also:
    • NONE

      public static final int NONE
      See Also:
    • methodListCollection

      public static String[] methodListCollection
    • rgbTypes

      public static String[] rgbTypes
    • colorList

      public static String[] colorList
    • fusionMethodList

      public static String[] fusionMethodList
    • fusionMethodListSimple

      public static String[] fusionMethodListSimple
    • fusionMethodListGrid

      public static String[] fusionMethodListGrid
    • timeSelect

      public static String[] timeSelect
    • cpuMemSelect

      public static String[] cpuMemSelect
  • Constructor Details

    • CommonFunctions

      public CommonFunctions()
  • Method Details

    • loadImage

      public static ij.ImagePlus loadImage(String directory, String file, int seriesNumber)
    • loadImage

      public static ij.ImagePlus loadImage(String directory, String file, int seriesNumber, String rgb)
    • addHyperLinkListener

      public static final void addHyperLinkListener(ij.gui.MultiLineLabel text, String myURL)
    • openLOCIImagePlus

      public static ij.ImagePlus openLOCIImagePlus(String path, String fileName, int seriesNumber, String rgb)
    • openLOCIImagePlus

      public static ij.ImagePlus openLOCIImagePlus(String path, String fileName, int seriesNumber)
    • openLOCIImagePlus

      public static ij.ImagePlus openLOCIImagePlus(String path, String fileName, int seriesNumber, String rgb, int from, int to)
    • getPixelValueRGB

      public static float getPixelValueRGB(int rgb, int rgbType)
    • zeroPad

      public static FloatArray3D zeroPad(FloatArray3D ip, int width, int height, int depth)
    • zeroPadImages

      public static FloatArray3D[] zeroPadImages(FloatArray3D img1, FloatArray3D img2)
    • zeroPad

      public static FloatArray2D zeroPad(FloatArray2D ip, int width, int height)
    • zeroPadImages

      public static FloatArray2D[] zeroPadImages(FloatArray2D img1, FloatArray2D img2)
    • quicksort

      public static void quicksort(Quicksortable[] data, int left, int right)
    • pffft2D

      public static FloatArray2D pffft2D(FloatArray2D values, boolean scale)
    • pffftInv2D

      public static FloatArray2D pffftInv2D(FloatArray2D values, int nfft)
    • pffft3DMT

      public static FloatArray3D pffft3DMT(FloatArray3D values, boolean scale)
    • computePhaseCorrelationMatrix

      public static FloatArray2D computePhaseCorrelationMatrix(FloatArray2D fft1, FloatArray2D fft2, int width)
    • computeFFT

      public static FloatArray2D computeFFT(FloatArray2D img)
    • computePhaseCorrelationMatrix

      public static FloatArray3D computePhaseCorrelationMatrix(FloatArray3D fft1, FloatArray3D fft2, int width)
    • computeFFT

      public static FloatArray3D computeFFT(FloatArray3D img)
    • computePhaseCorrelationMatrix

      public static float[] computePhaseCorrelationMatrix(float[] fft1, float[] fft2, boolean inPlace)
    • normalizeComplexVectorsToUnitVectors

      public static void normalizeComplexVectorsToUnitVectors(float[] complex)
    • complexConjugate

      public static void complexConjugate(float[] complex)
    • multiplyComplexReal

      public static float multiplyComplexReal(float a, float b, float c, float d)
    • multiplyComplexImg

      public static float multiplyComplexImg(float a, float b, float c, float d)
    • multiply

      public static float[] multiply(float[] complexA, float[] complexB, boolean overwriteA)
    • pffftInv3DMT

      public static FloatArray3D pffftInv3DMT(FloatArray3D values, int nfft)
    • startTask

      public static void startTask(Runnable run, int numThreads)
    • newThreads

      public static Thread[] newThreads()
    • newThreads

      public static Thread[] newThreads(int numThreads)
    • startAndJoin

      public static void startAndJoin(Thread[] threads)
    • getPixelMinRGB

      public static final int[] getPixelMinRGB(Object[] imageStack, int width, int height, int depth, int x, int y, int z, double min)
    • getPixelMin

      public static final float getPixelMin(int imageType, Object[] imageStack, int width, int height, int depth, int x, int y, int z, double min)
    • getPlanePosition

      public static final double[] getPlanePosition(loci.formats.IFormatReader r, loci.formats.meta.MetadataRetrieve retrieve, int series, int t)
    • getPlanePosition

      public static final double[] getPlanePosition(loci.formats.IFormatReader r, loci.formats.meta.MetadataRetrieve retrieve, int series, int t, boolean invertX, boolean invertY, boolean ignoreZStage)