protected void settingsChanged() {
		checkSettings();
		
		if(regionSize == null || topology == null) {
			dc = null;
			return;
		}
		
		// Build Classifier
		dc = new DiceClassifier(directory, regionSize, topology);

		if(!dc.loadSamples()) return;
		dc.train();
		
		if(this.lastMat != null && this.lastInfo != null)
			applyComponent(NNComponent.this.lastMat, NNComponent.this.lastInfo);
	}