processCLTQuad(// returns ImagePlus, but it already should be saved/shown
imp_srcs,// [srcChannel], // should have properties "name"(base for saving results), "channel","path"
clt_parameters,
...
...
@@ -4241,26 +4139,17 @@ public class EyesisDCT {
channelGainParameters,
rgbParameters,
convolveFFTSize,// 128 - fft size, kernel size should be size/2
scaleExposure[srcChannel],
scaleExposures,
threadsMax,// maximal number of threads to launch
updateStatus,
debugLevel);
// warp result (add support for different color modes)
if(this.correctionsParameters.equirectangular){
if(equirectangularParameters.clearFullMap)eyesisCorrections.pixelMapping.deleteEquirectangularMapFull(srcChannel);// save memory? //removeUnusedSensorData - no, use equirectangular specific settings
if(equirectangularParameters.clearAllMaps)eyesisCorrections.pixelMapping.deleteEquirectangularMapAll(srcChannel);// save memory? //removeUnusedSensorData - no, use equirectangular specific settings
}
//pixelMapping
Runtime.getRuntime().gc();
if(debugLevel>-1)System.out.println("Processing image "+(iImage+1)+" (of "+fileIndices.length+") finished at "+
if(debugLevel>-1)System.out.println("Processing set "+(nSet+1)+" (of "+fileIndices.length+") finished at "+
System.out.println("Vignetting data for channel "+srcChannel+" has "+eyesisCorrections.channelVignettingCorrection[srcChannel].length+" pixels, image "+sourceFiles[nFile]+" has "+pixels.length);
// for the integer maximum provide contrast and variety
intmax_index=icorr_max[1]*corr_size+icorr_max[0];
disparity_map[6][tileY*tilesX+tileX]=tcorr_combo[0][max_index];// correlation combo value at the integer maximum
// undo scaling caused by optional normalization
disparity_map[7][tileY*tilesX+tileX]=(rms[1]*tcorr_combo[1][max_index])/(rms[0]*tcorr_combo[0][max_index]);// correlation combo value at the integer maximum
// Calculate "center of mass" coordinates
double[]corr_max_XYm=getMaxXYCm(// get fractiona center as a "center of mass" inside circle/square from the integer max
tcorr_combo[0],// [data_size * data_size]
corr_size,
icorr_max,// integer center coordinates (relative to top left)
max_corr_radius,// positive - within that distance, negative - within 2*(-radius)+1 square