Revision 2101 org.gvsig.raster.principalcomponents/trunk/org.gvsig.raster.principalcomponents/org.gvsig.raster.principalcomponents.algorithm/src/main/java/org/gvsig/raster/principalcomponents/algorithm/PCAStatisticsProcess.java
PCAStatisticsProcess.java | ||
---|---|---|
72 | 72 |
public class PCAStatisticsProcess extends DataProcess { |
73 | 73 |
public static final String LAYER_ZONA_ESTUDIO = "LAYER_ZONA_ESTUDIO"; |
74 | 74 |
public static String BANDS = "BANDS"; |
75 |
public static String PATH = "PATH"; |
|
75 | 76 |
|
76 |
public static String RASTER_STORE_LIST = "RasterStoreList";
|
|
77 |
public static String STATS_RESULT = "PCStatsDataStructure";
|
|
77 |
public static String RASTER_STORE_LIST = "RASTER_STORE_LIST";
|
|
78 |
public static String STATS_RESULT = "STATS_RESULT";
|
|
78 | 79 |
|
79 | 80 |
|
80 | 81 |
private VectorialROI vectROI = null; |
... | ... | |
92 | 93 |
private static Logger logger = LoggerFactory.getLogger(PCAStatisticsProcess.class.getName()); |
93 | 94 |
private double[][] maxminmean = null; |
94 | 95 |
private Extent extentResult = null; |
96 |
private String path = null; |
|
95 | 97 |
|
96 | 98 |
public static void registerParameters() { |
97 |
registerInputParameter(RASTER_STORE_LIST, RasterDataStore[].class, PrincipalComponentsAlgorithmLibrary.PCS_STATS_PROCESS_LABEL); |
|
98 |
registerInputParameter(BANDS, Boolean[].class, PrincipalComponentsAlgorithmLibrary.PCS_STATS_PROCESS_LABEL); |
|
99 |
registerInputParameter(RASTER_STORE_LIST, RasterDataStore[].class, PrincipalComponentsAlgorithmLibrary.PC_STATS_PROCESS_LABEL); |
|
100 |
registerInputParameter(BANDS, Boolean[].class, PrincipalComponentsAlgorithmLibrary.PC_STATS_PROCESS_LABEL); |
|
101 |
registerInputParameter(PATH, String.class, PrincipalComponentsAlgorithmLibrary.PC_STATS_PROCESS_LABEL); |
|
99 | 102 |
|
100 |
registerOutputParameter(STATS_RESULT, PCStatsDataStructure.class, PrincipalComponentsAlgorithmLibrary.PCS_STATS_PROCESS_LABEL); |
|
103 |
registerOutputParameter(STATS_RESULT, PCStatsDataStructure.class, PrincipalComponentsAlgorithmLibrary.PC_STATS_PROCESS_LABEL); |
|
104 |
registerOutputParameter(PATH, String.class, PrincipalComponentsAlgorithmLibrary.PC_STATS_PROCESS_LABEL); |
|
105 |
registerOutputParameter(BANDS, Boolean[].class, PrincipalComponentsAlgorithmLibrary.PC_STATS_PROCESS_LABEL); |
|
101 | 106 |
} |
102 | 107 |
|
103 | 108 |
@Override |
104 | 109 |
public void init() { |
105 | 110 |
storeList = (RasterDataStore[])getParam(RASTER_STORE_LIST); |
106 | 111 |
bands = (boolean[])getParam(BANDS); |
112 |
path = getStringParam(PATH); |
|
107 | 113 |
} |
108 | 114 |
|
109 | 115 |
public double[] getAutoValors() { |
... | ... | |
337 | 343 |
|
338 | 344 |
//Object[] dataROI = new Object[]{vectROI, (int)shift[0].getX(), (int)shift[0].getY()}; |
339 | 345 |
addOutputValue(STATS_RESULT, resultStatistics); |
346 |
addOutputValue(PATH, path); |
|
347 |
addOutputValue(BANDS, bands); |
|
340 | 348 |
try { |
341 | 349 |
store.close(); |
342 | 350 |
} catch (CloseException e) { |
Also available in: Unified diff