Revision 4066 branches/v05/applications/appgvSIG/src/com/iver/cit/gvsig/gui/Panels/PropertiesRasterDialog.java
PropertiesRasterDialog.java | ||
---|---|---|
652 | 652 |
if(((Boolean) (getSharpeningPanel().getRGBTable()).getValueAt(i, 0)).booleanValue()) |
653 | 653 |
pancr = ((String) (getSharpeningPanel().getRGBTable()).getValueAt(i, 1)); |
654 | 654 |
} |
655 |
|
|
655 |
|
|
656 | 656 |
//Buscamos el GeoRasterFile que corresponde a la capa y a?adimos el filtro con el |
657 | 657 |
if(pancr!=null){ |
658 | 658 |
pancr = pancr.substring(pancr.lastIndexOf("] ") + 2, pancr.length()); |
659 | 659 |
for(int i=0; i<fLayer.getSource().getFiles().length;i++){ |
660 |
if(fLayer.getSource().getFiles()[i].getName().endsWith("/"+pancr)){
|
|
660 |
if(fLayer.getSource().getFiles()[i].getName().endsWith(File.separator+pancr)){
|
|
661 | 661 |
int[] order = {getAssignedBand(GeoRasterFile.RED_BAND),getAssignedBand(GeoRasterFile.GREEN_BAND),getAssignedBand(GeoRasterFile.BLUE_BAND)}; |
662 | 662 |
|
663 | 663 |
int opac = Integer.parseInt(this.getTransparencyPanel().getOpacityText().getText()); |
... | ... | |
674 | 674 |
int coefBrovey = 0; |
675 | 675 |
if(getSharpeningPanel().getRbBrovey().isSelected()) |
676 | 676 |
coefBrovey = Integer.parseInt(pSharp.getJTextField1().getText()); |
677 |
|
|
677 |
|
|
678 |
System.out.println("--->NOM PANCR:"+pancr); |
|
678 | 679 |
stackManager.addSharpeningFilter(fLayer.getSource().getFiles(), i, order, opac, method, coef, coefBrovey); |
679 | 680 |
} |
680 | 681 |
} |
Also available in: Unified diff