public class TestSURFWithImageJ
extends java.lang.Object
Constructor and Description |
---|
TestSURFWithImageJ() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map<ExtendedSURFInterestPoint,ExtendedSURFInterestPoint> |
compareImagesSURF(ij.ImagePlus image1,
ij.ImagePlus image2,
com.labun.surf.Params p1,
com.labun.surf.Params p2)
function compareImagesSURF is used to compare two images and return the matchedPoints
|
static void |
generateInterestPointsFromZIP(java.lang.String folderName) |
static java.util.Map<ExtendedSURFInterestPoint,ExtendedSURFInterestPoint> |
intersection(java.util.Map<ExtendedSURFInterestPoint,ExtendedSURFInterestPoint> map1,
java.util.Map<ExtendedSURFInterestPoint,ExtendedSURFInterestPoint> map2)
Return a new Map contaning only those entries
from map1 that also contain (as reversed key/value paar) in map2.
|
static void |
main(java.lang.String[] args) |
static void |
saveInterestPointsToFile(java.lang.String folderName,
java.lang.String zipFile,
java.lang.String outputFile,
com.labun.surf.Params p)
function used to find the SURF interest points for all the slices from a .zip file
and save it to a .tif image -> for the later convenience of compress .tip to .zip file
|
static ij.process.FloatProcessor |
selectPatches(int x,
int y,
ij.ImagePlus srcImg,
int patchWidth,
int patchHeight)
function selectPatches is used to form a square shaped patch around an input point
the input point (int x, int y) is supposed to be a 2D point in Cartesian Coordinate,
the input point (int x, int y) is also the center of the formed square patch
patchWidth and patchHeight are supposed to be even numbers
|
public static void main(java.lang.String[] args) throws java.io.IOException
args
- java.io.IOException
public static void generateInterestPointsFromZIP(java.lang.String folderName)
public static void saveInterestPointsToFile(java.lang.String folderName, java.lang.String zipFile, java.lang.String outputFile, com.labun.surf.Params p)
public static ij.process.FloatProcessor selectPatches(int x, int y, ij.ImagePlus srcImg, int patchWidth, int patchHeight)
public static java.util.Map<ExtendedSURFInterestPoint,ExtendedSURFInterestPoint> compareImagesSURF(ij.ImagePlus image1, ij.ImagePlus image2, com.labun.surf.Params p1, com.labun.surf.Params p2)
public static java.util.Map<ExtendedSURFInterestPoint,ExtendedSURFInterestPoint> intersection(java.util.Map<ExtendedSURFInterestPoint,ExtendedSURFInterestPoint> map1, java.util.Map<ExtendedSURFInterestPoint,ExtendedSURFInterestPoint> map2)