Revision 22582
trunk/extensions/extRemoteSensing/src/org/gvsig/remotesensing/mosaic/gui/MosaicDialog.java | ||
---|---|---|
454 | 454 |
else |
455 | 455 |
masterRasterPosition = i; |
456 | 456 |
|
457 |
File tempHMDir = new File(Utilities.createTempDirectory()+File.separator+"HMResults"); |
|
458 |
tempHMDir.mkdir(); |
|
459 |
|
|
457 | 460 |
HistogramMatchProcess proceso = new HistogramMatchProcess(); |
458 | 461 |
proceso.addParam("histogramMaster",histogramReference); |
459 | 462 |
proceso.addParam("numbands",new Integer(3)); //********************************* |
460 | 463 |
proceso.addParam("layers",capas); |
461 |
proceso.addParam("reslutsPath",Utilities.createTempDirectory()+File.separator+"tempHM"+File.separator);
|
|
464 |
proceso.addParam("resultsPath",tempHMDir.getAbsolutePath());
|
|
462 | 465 |
proceso.setActions(this); |
463 | 466 |
proceso.start(); |
464 | 467 |
|
... | ... | |
507 | 510 |
currentProcess = this.LOADING; |
508 | 511 |
resultLayer = (FLyrRasterSE)param; |
509 | 512 |
loadLayer(); |
513 |
//Borrar las ficheros intermedios (el resultado del H.M.) |
|
514 |
File tempDir = new File(Utilities.createTempDirectory()+File.separator+"HMResults"); |
|
515 |
File filesToDelete[] = tempDir.listFiles(); |
|
516 |
for (int i = 0; i<filesToDelete.length; i++) |
|
517 |
filesToDelete[i].delete(); |
|
518 |
tempDir.delete(); |
|
510 | 519 |
break; |
511 | 520 |
} |
512 | 521 |
} |
trunk/extensions/extRemoteSensing/src/org/gvsig/remotesensing/mosaic/process/FeatherProcessBuff.java | ||
---|---|---|
173 | 173 |
// TODO Auto-generated catch block |
174 | 174 |
e.printStackTrace(); |
175 | 175 |
} catch (RasterDriverException e) { |
176 |
// TODO Auto-generated catch block |
|
177 |
e.printStackTrace(); |
|
176 |
RasterToolsUtil.messageBoxError(PluginServices.getText(this, "error_writer"), this, e); |
|
178 | 177 |
} |
179 | 178 |
inputBuffers[l] = bufferFactory.getRasterBuf(); |
180 | 179 |
} |
trunk/extensions/extRemoteSensing/src/org/gvsig/remotesensing/mosaic/process/HistogramMatchProcess.java | ||
---|---|---|
110 | 110 |
int k=0; |
111 | 111 |
totalcount= inputRasterLayers.length-1; |
112 | 112 |
for (int i=0; i< inputRasterLayers.length;i++){ |
113 |
path = path + "hist"+i+ ".tif"; |
|
114 | 113 |
// Para el resto de los histogramas seleccionados |
115 | 114 |
if(inputRasterLayers[i]!=null){ |
116 | 115 |
k++; |
... | ... | |
127 | 126 |
filtro.addParam("filterName",new String("histogram")); |
128 | 127 |
filtro.execute(); |
129 | 128 |
rasterResult=(RasterBuffer) filtro.getResult("raster"); |
130 |
outputRassterLayers[i] = createLayer(path,i); |
|
129 |
outputRassterLayers[i] = createLayer(path + File.separator + "hist" + i + ".tif",i);
|
|
131 | 130 |
} |
132 | 131 |
} |
133 | 132 |
|
Also available in: Unified diff