Revision 19494 trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/enhancement/LinearStretchEnhancementFilter.java
LinearStretchEnhancementFilter.java | ||
---|---|---|
51 | 51 |
|
52 | 52 |
protected LinearStretchParams stretchs = null; |
53 | 53 |
protected Stretch[] scaleOffsetList = null; |
54 |
/** |
|
55 |
* Considera una imagen byte con un rango rgb(0, 255) o datos en rango byte (-128, 127) |
|
56 |
*/ |
|
57 |
protected boolean rgb = false; |
|
54 | 58 |
|
55 | 59 |
/** |
56 | 60 |
* Construye un LinearEnhancementFilter |
... | ... | |
69 | 73 |
stretchs = (LinearStretchParams) params.get("stretchs"); |
70 | 74 |
if(params.get("remove") != null) |
71 | 75 |
removeEnds = ((Boolean)params.get("remove")).booleanValue(); |
72 |
|
|
76 |
|
|
73 | 77 |
if(stretchs == null) |
74 | 78 |
return; |
75 | 79 |
|
... | ... | |
95 | 99 |
exec = false; |
96 | 100 |
} |
97 | 101 |
|
98 |
stretchs.setMaxMin(stats, raster.getDataType());
|
|
102 |
stretchs.setMaxMin(stats); |
|
99 | 103 |
|
100 | 104 |
if(removeEnds) |
101 |
stretchs.applyRemoveEndsToStretchs(stats, raster.getDataType());
|
|
105 |
stretchs.applyRemoveEndsToStretchs(stats); |
|
102 | 106 |
|
103 | 107 |
stretchs.loadTailTrimValues(stats); |
104 | 108 |
|
Also available in: Unified diff