private bool LoadInputs() { bool hasChanges = false; if (FImageInstances.SliceCount != FPinInImage.SliceCount) { FImageInstances.SliceCount = FPinInImage.SliceCount; hasChanges = true; } for (int i = 0; i < FImageInstances.SliceCount; i++) { if (FImageInstances[i] == null) { FImageInstances[i] = new ImageRGB8Instance(); } //check whether image has changed //if so reinitialise if (FImageInstances[i].Image != FPinInImage[i]) { FImageInstances[i].Image = FPinInImage[i]; hasChanges = true; } } return(hasChanges); }
private bool LoadInputs() { bool hasChanges = false; if (FImageInstances.SliceCount != FPinInImage.SliceCount) { FImageInstances.SliceCount = FPinInImage.SliceCount; hasChanges = true; } for (int i = 0; i < FImageInstances.SliceCount; i++) { if (FImageInstances[i] == null) { FImageInstances[i] = new ImageRGB8Instance(); } //check whether image has changed //if so reinitialise if (FImageInstances[i].Image != FPinInImage[i]) { FImageInstances[i].Image = FPinInImage[i]; hasChanges = true; } } return hasChanges; }