public IEnumerable <WriteableBitmap> Build() { Image3DMatrix imageMatrix = _imageLoader.GetImageMatrix(); TransformationMatrix transformationMatrix = GetTransformationMatrix(imageMatrix); imageMatrix = ApplyTransformationMatrix(imageMatrix, transformationMatrix); return(MatrixToBitmapImageConverter.GetImages(imageMatrix)); }
/// <summary> /// Executes the image loading stack and applies transformations. /// Finally, the image matrix will be converted to a bitmap image. /// </summary> /// <returns></returns> public WriteableBitmap Build() { SetImageLoader(); Image2DMatrix imageMatrix = _imageLoader.GetImageMatrix(); TransformationMatrix transformationMatrix = GetTransformationMatrix(imageMatrix); imageMatrix = ApplyTransformationMatrix(imageMatrix, transformationMatrix); return(MatrixToBitmapImageConverter.GetImage(imageMatrix)); }