public class PairWiseStitchingImgLib extends Object
Constructor and Description |
---|
PairWiseStitchingImgLib() |
Modifier and Type | Method and Description |
---|---|
protected static <T extends RealType<T>,S extends RealType<S>> |
averageAllChannels(Image<T> target,
ArrayList<Image<S>> sources,
int[] offset)
Averages all channels into the target image.
|
static <T extends RealType<T>> |
averageAllChannels(Image<T> target,
int[] offset,
ij.ImagePlus imp,
int timepoint)
Averages all channels into the target image.
|
static boolean |
canWrapIntoImgLib(ij.ImagePlus imp,
Roi roi,
int channel)
Determines if this imageplus with these parameters can be wrapped directly into an
Image<T> . |
static <T extends RealType<T>,S extends RealType<S>> |
computePhaseCorrelation(Image<T> img1,
Image<S> img2,
int numPeaks,
boolean subpixelAccuracy) |
static <T extends RealType<T>> |
fillInChannel(Image<T> target,
int[] offset,
ij.ImagePlus imp,
int channel,
int timepoint)
Averages all channels into the target image.
|
static <T extends RealType<T>> |
getImage(ij.ImagePlus imp,
Roi roi,
ImageFactory<T> imgFactory,
int channel,
int timepoint)
return an
Image<T> as input for the PhaseCorrelation. |
protected static Roi |
getOnlyRectangularRoi(Roi roi) |
static Image<FloatType> |
getWrappedImageFloat(ij.ImagePlus imp,
int channel,
int timepoint)
|
static Image<UnsignedByteType> |
getWrappedImageUnsignedByte(ij.ImagePlus imp,
int channel,
int timepoint)
return an
Image of UnsignedByteType as input for the PhaseCorrelation. |
static Image<UnsignedShortType> |
getWrappedImageUnsignedShort(ij.ImagePlus imp,
int channel,
int timepoint)
return an
Image of UnsignedShortType as input for the PhaseCorrelation. |
static <T extends RealType<T>,S extends RealType<S>> |
performStitching(Image<T> img1,
Image<S> img2,
StitchingParameters params) |
static PairWiseStitchingResult |
stitchPairwise(ij.ImagePlus imp1,
ij.ImagePlus imp2,
Roi roi1,
Roi roi2,
int timepoint1,
int timepoint2,
StitchingParameters params) |
public static PairWiseStitchingResult stitchPairwise(ij.ImagePlus imp1, ij.ImagePlus imp2, Roi roi1, Roi roi2, int timepoint1, int timepoint2, StitchingParameters params)
public static <T extends RealType<T>,S extends RealType<S>> PairWiseStitchingResult performStitching(Image<T> img1, Image<S> img2, StitchingParameters params)
public static <T extends RealType<T>,S extends RealType<S>> PairWiseStitchingResult computePhaseCorrelation(Image<T> img1, Image<S> img2, int numPeaks, boolean subpixelAccuracy)
public static <T extends RealType<T>> Image<T> getImage(ij.ImagePlus imp, Roi roi, ImageFactory<T> imgFactory, int channel, int timepoint)
Image<T>
as input for the PhaseCorrelation.imp
- - the ImagePlus
imgFactory
- - the ImageFactory
defining wher to put it intochannel
- - which channel (if channel=0 means average all channels)timepoint
- - which timepointImage
or null if it was not an ImagePlus.GRAY8, ImagePlus.GRAY16 or ImagePlus.GRAY32public static <T extends RealType<T>> boolean averageAllChannels(Image<T> target, int[] offset, ij.ImagePlus imp, int timepoint)
target
- - the target Imageoffset
- - the offset of the area (might be [0,0] or [0,0,0])imp
- - the input ImagePlustimepoint
- - for which timepointpublic static <T extends RealType<T>> boolean fillInChannel(Image<T> target, int[] offset, ij.ImagePlus imp, int channel, int timepoint)
target
- - the target Imageoffset
- - the offset of the area (might be [0,0] or [0,0,0])imp
- - the input ImagePlustimepoint
- - for which timepointprotected static <T extends RealType<T>,S extends RealType<S>> void averageAllChannels(Image<T> target, ArrayList<Image<S>> sources, int[] offset)
target
- - the target Imageoffset
- - the offset of the area (might be [0,0] or [0,0,0])sources
- - a list of input Imagespublic static Image<UnsignedByteType> getWrappedImageUnsignedByte(ij.ImagePlus imp, int channel, int timepoint)
Image
of UnsignedByteType
as input for the PhaseCorrelation. If no rectangular roi
is selected, it will only wrap the existing ImagePlus!imp
- - the ImagePlus
channel
- - which channel (if channel=0 means average all channels)timepoint
- - which timepointImage
or null if it was not an ImagePlus.GRAY8 or if channel = 0public static Image<UnsignedShortType> getWrappedImageUnsignedShort(ij.ImagePlus imp, int channel, int timepoint)
Image
of UnsignedShortType
as input for the PhaseCorrelation. If no rectangular roi
is selected, it will only wrap the existing ImagePlus!imp
- - the ImagePlus
channel
- - which channel (if channel=0 means average all channels)timepoint
- - which timepointImage
or null if it was not an ImagePlus.GRAY16 or if channel = 0public static Image<FloatType> getWrappedImageFloat(ij.ImagePlus imp, int channel, int timepoint)
Image
of FloatType
as input for the PhaseCorrelation. If no rectangular roi
is selected, it will only wrap the existing ImagePlus!imp
- - the ImagePlus
channel
- - which channel (if channel=0 means average all channels)timepoint
- - which timepointImage
or null if it was not an ImagePlus.GRAY32 or if channel = 0public static boolean canWrapIntoImgLib(ij.ImagePlus imp, Roi roi, int channel)
Image<T>
.
This is important, because if we would wrap the first but not the second image, they would
have different ImageFactory
simp
- - the ImagePlusroi
- channel
- - which channel (if channel=0 means average all channels)Copyright © 2015–2021 Fiji. All rights reserved.