Migrate to Pshell 2.0
This commit is contained in:
@@ -71,8 +71,8 @@ public class Image_Correlator implements PlugIn {
|
||||
int width = im1.getWidth();
|
||||
int height = im1.getHeight();
|
||||
float[] v1, v2;
|
||||
ip1 = im1.getProcessor();
|
||||
ip2 = im2.getProcessor();
|
||||
ImageProcessor ip1 = im1.getProcessor();
|
||||
ImageProcessor ip2 = im2.getProcessor();
|
||||
v1 = new float[width*height];
|
||||
v2 = new float[width*height];
|
||||
ImageProcessor plot= new FloatProcessor(256, 256);
|
||||
@@ -92,7 +92,7 @@ public class Image_Correlator implements PlugIn {
|
||||
}
|
||||
plot.invertLut();
|
||||
plot.resetMinAndMax();
|
||||
pcc = calculateCorrelation(v1, v2);
|
||||
double pcc = calculateCorrelation(v1, v2);
|
||||
ImagePlus ret = new ImagePlus("Correlation Plot", plot);
|
||||
return new Object[]{pcc,ret};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user