Migrate to Pshell 2.0

This commit is contained in:
alexgobbo
2025-08-08 10:51:04 +02:00
parent 578428d444
commit a8f0508daa
31 changed files with 493 additions and 486 deletions

View File

@@ -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};