Package gov.nih.mipav.model.algorithms
Class DSC_MRI_toolbox
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.CeresSolver
-
- gov.nih.mipav.model.algorithms.DSC_MRI_toolbox
-
public class DSC_MRI_toolbox extends CeresSolver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classDSC_MRI_toolbox.diffGaussians(package private) classDSC_MRI_toolbox.gauss1Fitting(package private) classDSC_MRI_toolbox.gauss1FittingCostFunction(package private) classDSC_MRI_toolbox.gauss2Fitting(package private) classDSC_MRI_toolbox.gauss2FittingCostFunction(package private) classDSC_MRI_toolbox.gaussSecondStandardDeviationFittingCostFunction(package private) classDSC_MRI_toolbox.gaussStandardDeviationFitting(package private) classDSC_MRI_toolbox.gaussStandardDeviationFittingCostFunction(package private) classDSC_MRI_toolbox.GVFitting(package private) classDSC_MRI_toolbox.GVFittingCostFunction(package private) classDSC_MRI_toolbox.GVRecirculation(package private) classDSC_MRI_toolbox.GVRecirculationCostFunction-
Nested classes/interfaces inherited from class gov.nih.mipav.model.algorithms.CeresSolver
CeresSolver.ArctanLoss, CeresSolver.ArmijoLineSearch, CeresSolver.AutoDiffCostFunction<CostFunctor>, CeresSolver.BadTestTerm, CeresSolver.BFGS, CeresSolver.Block, CeresSolver.BlockEvaluatePreparer, CeresSolver.BlockJacobianWriter, CeresSolver.BlockJacobiPreconditioner, CeresSolver.BlockRandomAccessDenseMatrix, CeresSolver.BlockRandomAccessDiagonalMatrix, CeresSolver.BlockRandomAccessMatrix, CeresSolver.BlockSparseMatrix, CeresSolver.BlockSparseMatrixRandomMatrixOptions, CeresSolver.CallbackReturnType, CeresSolver.CallStatistics, CeresSolver.CauchyLoss, CeresSolver.Cell, CeresSolver.CellInfo, CeresSolver.CellLessThan, CeresSolver.CgnrLinearOperator, CeresSolver.CgnrSolver, CeresSolver.Chunk, CeresSolver.ComposedLoss, CeresSolver.CompressedList, CeresSolver.CompressedRowBlockStructure, CeresSolver.CompressedRowJacobianWriter, CeresSolver.CompressedRowSparseMatrix, CeresSolver.ConjugateGradientsSolver, CeresSolver.Context, CeresSolver.CoordinateDescentMinimizer, CeresSolver.Corrector, CeresSolver.CostFunction, CeresSolver.CostFunctorExample, CeresSolver.CovarianceAlgorithmType, CeresSolver.CRSMatrix, CeresSolver.CurveFittingFunctorExample, CeresSolver.DenseJacobianWriter, CeresSolver.DenseLinearAlgebraLibraryType, CeresSolver.DenseNormalCholeskySolver, CeresSolver.DenseQRSolver, CeresSolver.DenseSchurComplementSolver, CeresSolver.DenseSparseMatrix, CeresSolver.DoglegStrategy, CeresSolver.DoglegType, CeresSolver.DumpFormatType, CeresSolver.DynamicCompressedRowJacobianFinalizer, CeresSolver.DynamicCompressedRowJacobianWriter, CeresSolver.DynamicCostFunction, CeresSolver.DynamicNumericDiffCostFunction<T>, CeresSolver.EasyCostFunction, CeresSolver.EasyFunctor, CeresSolver.EigenQuaternionParameterization, CeresSolver.EvaluateOptions, CeresSolver.EvaluateScratch, CeresSolver.EvaluationCallback, CeresSolver.Evaluator, CeresSolver.EvaluatorOptions, CeresSolver.EventLogger, CeresSolver.ExecutionSummary, CeresSolver.ExponentialCostFunction, CeresSolver.ExponentialFunctor, CeresSolver.FirstOrderFunction, CeresSolver.FunctionSample, CeresSolver.GoodTestTerm, CeresSolver.GradientChecker, CeresSolver.GradientCheckingCostFunction, CeresSolver.GradientCheckingIterationCallback, CeresSolver.GradientProblem, CeresSolver.GradientProblemEvaluator, CeresSolver.GradientProblemSolver, CeresSolver.GradientProblemSolverOptions, CeresSolver.GradientProblemSolverStateUpdatingCallback, CeresSolver.GradientProblemSolverSummary, CeresSolver.Graph<Vertex>, CeresSolver.HomogeneousVectorParameterization, CeresSolver.HuberLoss, CeresSolver.IdentityParameterization, CeresSolver.ImplicitSchurComplement, CeresSolver.indexValueItem<Vertex>, CeresSolver.IterationCallback, CeresSolver.IterationSummary, CeresSolver.IterativeSchurComplementSolver, CeresSolver.LBFGS, CeresSolver.LevenbergMarquardtStrategy, CeresSolver.LinearCostFunction, CeresSolver.LinearLeastSquaresProblem, CeresSolver.LinearOperator, CeresSolver.LinearSolver, CeresSolver.LinearSolverOptions, CeresSolver.LinearSolverPerSolveOptions, CeresSolver.LinearSolverSummary, CeresSolver.LinearSolverTerminationType, CeresSolver.LinearSolverType, CeresSolver.LineSearch, CeresSolver.LineSearchDirection, CeresSolver.LineSearchDirectionOptions, CeresSolver.LineSearchDirectionType, CeresSolver.LineSearchFunction, CeresSolver.LineSearchInterpolationType, CeresSolver.LineSearchMinimizer, CeresSolver.LineSearchOptions, CeresSolver.LineSearchPreprocessor, CeresSolver.LineSearchSummary, CeresSolver.LineSearchType, CeresSolver.LocalParameterization, CeresSolver.LoggingCallback, CeresSolver.LoggingType, CeresSolver.LossFunction, CeresSolver.LossFunctionWrapper, CeresSolver.LowRankInverseHessian, CeresSolver.Minimizer, CeresSolver.MinimizerOptions, CeresSolver.MinimizerType, CeresSolver.MyCostFunctor, CeresSolver.MyThreeParameterCostFunctor, CeresSolver.NonlinearConjugateGradient, CeresSolver.NonlinearConjugateGradientType, CeresSolver.NormalPrior, CeresSolver.NullJacobianFinalizer, CeresSolver.NumericDiffCostFunction<CostFunctor>, CeresSolver.NumericDiffMethodType, CeresSolver.NumericDiffOptions, CeresSolver.OnlyFillsOneOutputFunctor, CeresSolver.OrderedGroups<T>, CeresSolver.Ownership, CeresSolver.Pair<T,U>, CeresSolver.ParameterBlock, CeresSolver.PartitionedMatrixView, CeresSolver.Preconditioner, CeresSolver.PreconditionerOptions, CeresSolver.PreconditionerType, CeresSolver.PreprocessedProblem, CeresSolver.Preprocessor, CeresSolver.ProbeResults, CeresSolver.ProblemImpl, CeresSolver.ProblemOptions, CeresSolver.ProductParameterization, CeresSolver.Program, CeresSolver.ProgramEvaluator<EvaluatePreparer,JacobianWriter,JacobianFinalizer>, CeresSolver.QuaternionParameterization, CeresSolver.RandomizedCostFunction, CeresSolver.RandomizedFunctor, CeresSolver.ResidualBlock, CeresSolver.ScaledLoss, CeresSolver.SchurComplementSolver, CeresSolver.SchurEliminator, CeresSolver.SchurEliminatorBase, CeresSolver.SchurJacobiPreconditioner, CeresSolver.ScopedExecutionTimer, CeresSolver.ScratchEvaluatePreparer, CeresSolver.SizedCostFunction, CeresSolver.SizeTestingCostFunction, CeresSolver.SoftLOneLoss, CeresSolver.Solver, CeresSolver.SolverOptions, CeresSolver.SolverSummary, CeresSolver.SparseLinearAlgebraLibraryType, CeresSolver.SparseMatrix, CeresSolver.SparseMatrixPreconditionerWrapper, CeresSolver.StateUpdatingCallback, CeresSolver.SteepestDescent, CeresSolver.SubsetParameterization, CeresSolver.TerminationType, CeresSolver.TestTerm, CeresSolver.TolerantLoss, CeresSolver.TranscendentalCostFunction, CeresSolver.TranscendentalFunctor, CeresSolver.TripletSparseMatrix, CeresSolver.TripletSparseMatrixRandomMatrixOptions, CeresSolver.TrivialLoss, CeresSolver.TrustRegionMinimizer, CeresSolver.TrustRegionPreprocessor, CeresSolver.TrustRegionStepEvaluator, CeresSolver.TrustRegionStrategy, CeresSolver.TrustRegionStrategyOptions, CeresSolver.TrustRegionStrategyPerSolveOptions, CeresSolver.TrustRegionStrategySummary, CeresSolver.TrustRegionStrategyType, CeresSolver.TukeyLoss, CeresSolver.TypedLinearSolver<MatrixType>, CeresSolver.TypedPreconditioner<MatrixType>, CeresSolver.VertexDegreeLessThan<Vertex>, CeresSolver.VertexTotalOrdering<Vertex>, CeresSolver.VisibilityClusteringType, CeresSolver.WeightedGraph<Vertex>, CeresSolver.WolfeLineSearch
-
-
Field Summary
Fields Modifier and Type Field Description (package private) doubleA_init(package private) double[]AIF_concprivate doubleaif_diffPeakprivate intaif_enable(package private) double[]AIF_fit_cv_est_parGV(package private) double[]AIF_fit_gv(package private) double[]AIF_fit_parameters(package private) double[]AIF_fit_weightsprivate intaif_nSliceprivate intaif_nVoxelMaxprivate intaif_nVoxelMinprivate doubleaif_pAreaprivate doubleaif_pRegprivate doubleaif_pTTPprivate intaif_recirculation(package private) byte[][]AIF_ROI(package private) double[]AIF_ROI_x(package private) double[]AIF_ROI_yprivate doubleaif_semiMajorAxisprivate doubleaif_semiMinorAxis(package private) int[][]AIF_voxelsprivate double[][][]AIFslice(package private) doublealpha_init(package private) doublebeta_init(package private) int[]bolus(package private) doublec1(package private) doublec2(package private) double[][][]cbf_csvd(package private) double[][][][]cbf_csvd_residual(package private) double[][][]cbf_osvd(package private) double[][][]cbf_osvd_OI(package private) double[][][][]cbf_osvd_residual(package private) double[][][]cbf_svd(package private) double[][][][]cbf_svd_residual(package private) double[][][]cbv(package private) double[][][]cbv_lcprivate double[][][][]conc(package private) double[]cv_est_parGV_peak1(package private) double[]cv_est_parGV_peak2(package private) double[]data_peak1(package private) double[]dati_peak2private intdeconv_cSVD_residualprivate doubledeconv_cSVD_thresholdprivate java.lang.String[]deconv_methodprivate doubledeconv_oSVD_OIthresprivate intdeconv_oSVD_residualprivate intdeconv_SS_residualprivate intdeconv_SVD_residualprivate doubledeconv_SVD_thresholdprivate intdisplay(package private) booleandoAIFTransfer(package private) booleandoCurveIntersectprivate booleandoSaveAllOutputs(package private) booleanequalTimeSpacing(package private) booleanerrorInMaskRoutineprivate int[]extents2Dprivate int[]extents3Dprivate int[]extents4Dprivate FileIOfileIO(package private) doublefirstGaussianAmplitude(package private) doublefirstGaussianMean(package private) intfirstGaussianMeanBin(package private) doublefirstGaussianStandardDeviation(package private) double[]fitParameters_peak1(package private) double[]fitParameters_peak2(package private) double[][][]fwhm(package private) booleangauss1FittingCheck(package private) booleangauss2FittingCheckprivate double[]gauss2FittingDataprivate intgauss2FittingObservations(package private) booleangaussStandardDeviationCheck(package private) booleanGVFittingCheck(package private) booleanGVRecirculationCheckprivate double[]GxDataprivate double[]GxxDataprivate java.lang.StringinputFileName(package private) double[]intensity(package private) doubleK_initprivate intlengthprivate byte[][][]mask_aifprivate byte[][]mask_aif_sliceprivate byte[][][]mask_dataprivate intmask_npixel(package private) doublemaxSum(package private) doubleminSum(package private) double[][][]mtt_csvd(package private) double[][][]mtt_osvd(package private) double[][][]mtt_svdprivate intnCprivate intnRprivate intnSprivate intnT(package private) intnTfineprivate intoptions_concprivate java.lang.StringoutputFilePathprivate java.lang.StringoutputPrefixprivate doublepar_khprivate doublepar_kvoiprivate doublepar_rho(package private) double[]probDoubleprivate doubleqr_aprivate doubleqr_bprivate intqr_enableprivate doubleqr_r(package private) booleanreadTestImage(package private) float[]resolutions3D(package private) float[]resolutions4Dprivate intS0_nSamplesMaxprivate intS0_nSamplesMinprivate doubleS0_thresh(package private) double[][][]S0mapprivate intsaveFileFormat(package private) doublesecondGaussianAmplitude(package private) doublesecondGaussianMean(package private) intsecondGaussianMeanBin(package private) doublesecondGaussianStandardDeviationprivate double[]sigmasprivate ModelImagesrcImage(package private) doublet0_init(package private) doubletao_init(package private) doubletd_initprivate doublete(package private) booleantest2PerfectGaussians(package private) double[]tGridprivate double[]time(package private) doubleTmax(package private) doubleTminprivate doubletr(package private) doubleTR(package private) doubleTRfine(package private) short[][][]ttpprivate ViewUserInterfaceUI(package private) int[]units3D(package private) int[]units4Dprivate intvolumeprivate double[][][][]volumesprivate intwaitbar(package private) double[]weights_peak1(package private) double[]weights_peak2(package private) double[]x_loc(package private) double[]x_out(package private) double[]y_loc(package private) double[]y_out-
Fields inherited from class gov.nih.mipav.model.algorithms.CeresSolver
BAD_TEST_TERM_EXAMPLE, COST_FUNCTOR_EXAMPLE, CURVE_FITTING_EXAMPLE, curveFittingData, curveFittingObservations, default_relstep, DYNAMIC, EASY_COST_FUNCTION, EASY_FUNCTOR_EXAMPLE, epsilon, ERROR, EXPONENTIAL_COST_FUNCTION, EXPONENTIAL_FUNCTOR, FATAL, GOOD_TEST_TERM_EXAMPLE, INFO, LINEAR_COST_FUNCTION_EXAMPLE, m, MAX_LOG_LEVEL, MY_COST_FUNCTOR, MY_THREE_PARAMETER_COST_FUNCTOR, N0, ONLY_FILLS_ONE_OUTPUT_FUNCTOR, optionsValid, RANDOMIZED_COST_FUNCTION, RANDOMIZED_FUNCTOR, SIZE_TESTING_COST_FUNCTION, svd, TEST_TERM_EXAMPLE, testCase, testMode, TRANSCENDENTAL_COST_FUNCTION, TRANSCENDENTAL_FUNCTOR, WARNING
-
-
Constructor Summary
Constructors Constructor Description DSC_MRI_toolbox()DSC_MRI_toolbox(double[][][][] volumes, double te, double tr, int aif_nSlice, java.lang.String outputFilePath)DSC_MRI_toolbox(ModelImage srcImage, java.lang.String outputFilePath, double te, double tr, int aif_nSlice, java.lang.String[] deconv_method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidbackupSecondGaussianRoutine()private double[][]calculateREG(byte[][] mask)byte[]calcZeroX(double[] buffer)private voidclusterHierarchical(double[][] dati, int nCluster, double[][] centroidi)private voidconvolve(double[] imageBuffer, double[] kernelBuffer, double[] resultBuffer)Perform one-dimension convolution.private double[]cumtrapz(double[] f)voidcurveIntersect(double[] x, double[] param)voidcurveintersect_local(double[] x1, double[] y1, double[] x2, double[] y2)voidDSC_mri_aif()voidDSC_mri_cbf()voidDSC_mri_cbv()voidDSC_mri_cbv_lc()voidDSC_mri_conc()voidDSC_mri_core()voidDSC_mri_cSVD()voidDSC_mri_fwhm()voidDSC_mri_mask()voidDSC_mri_mtt()voidDSC_mri_oSVD()voidDSC_mri_S0()intDSC_mri_slice_selection_figure()voidDSC_mri_SVD()voidDSC_mri_ttp()byte[]edgeDetect(double[] secondDerivBuffer)voidextractAIF()private voidfitGV_peak1(double[] dati, double[] orgWeights)private voidfitGV_peak2(double[] dati, double[] weights)booleanfitToExternalFunction(double[] x, double[] residuals, double[][] jacobian)(package private) doublefwhm(double[] x, double[] yorg)int[][]getAIF_voxels()private double[]GVfunction(double[] p)private double[]GVfunction_peak1(double[] p)private double[]GVfunction_recirculation(double[] p)double[]interp1(double[] x, double[] y, double[] x_loc)private voidmakeGxKernels1D()private voidmakeGxxKernels1D()Creates Gaussian derivative kernels.voidmminvinterp(double[] x, double[] y, double yo)voidrunAlgorithm()private java.io.FilesaveImageFile(ModelImage img, java.lang.String dir, java.lang.String fileBasename, int fileType)private java.io.FilesaveImageFile(ModelImage img, java.lang.String dir, java.lang.String fileBasename, int fileType, boolean alwaysSave)private doubletrapz(double[] f)private double[][]trapz(double[][][] f)private double[][]vol2mat(double[][][][] data, byte[][][] selected)-
Methods inherited from class gov.nih.mipav.model.algorithms.CeresSolver
AppendArrayToString, ApplyOrdering, BuildResidualLayout, ComputeHouseholderVector, ComputeRecursiveIndependentSetOrdering, ComputeSchurOrdering, ComputeStableSchurOrdering, copyFunctionSample, Create, Create, Create, Create, Create, Create, Create, CreateDiagonalMatrix, CreateEvaluatorScratch, CreateGradientCheckingCostFunction, CreateGradientCheckingProblemImpl, CreateHessianGraph, CreateLinearLeastSquaresProblemFromId, CreateOrdering, createPartitionedMatrixView, CreatePreprocessor, CreateRandomMatrix, CreateRandomMatrix, createSchurEliminatorBase, CreateSparseDiagonalMatrix, DetectStructure, DifferentiatePolynomial, DumpLinearLeastSquaresProblem, DumpLinearLeastSquaresProblemToConsole, DumpLinearLeastSquaresProblemToTextFile, EigenQuaternionProduct, EvaluateCostFunction, EvaluateJacobianColumn, EvaluateJacobianForParameterBlock, EvaluateJacobianForParameterBlock, EvaluatePolynomial, EvaluateRiddersJacobianColumn, ExpectClose, FindInterpolatingPolynomial, FindInvalidValue, FindLinearPolynomialRoots, FindPolynomialRoots, FindQuadraticPolynomialRoots, FindWithDefault, FindWithDefault, GetBestSchurTemplateSpecialization, GradientProblemSolverOptionsToSolverOptions, IndependentSetOrdering, InvalidateArray, InvalidateArray, InvalidateArray, InvalidateArray, InvertPSDMatrix, IsArrayValid, IsArrayValid, IsArrayValid, IsArrayValid, IsClose, IsOrderingValid, IsSchurType, IsSolutionUsable, IsSolutionUsable, LexicographicallyOrderResidualBlocks, LinearLeastSquaresProblem0, LinearLeastSquaresProblem1, LinearLeastSquaresProblem2, LinearLeastSquaresProblem3, LinearLeastSquaresProblem4, LinearSolverForZeroEBlocks, LinearSolverTypeToString, LineSearchDirectionTypeToString, LineSearchInterpolationTypeToString, LineSearchTypeToString, MatrixMatrixMultiply, MatrixMatrixMultiply, MatrixMatrixMultiply, MatrixMatrixMultiply, MatrixTransposeMatrixMultiply, MatrixTransposeVectorMultiply, MatrixVectorMultiply, MaybeReorderSchurComplementColumnsUsingEigen, MaybeReorderSchurComplementColumnsUsingSuiteSparse, Minimize, MinimizeInterpolatingPolynomial, MinimizePolynomial, MinParameterBlock, NonlinearConjugateGradientTypeToString, operator, PostSolveSummarize, PreconditionerForZeroEBlocks, PreconditionerTypeToString, QuaternionProduct, RandDouble, RandDouble, RandNormal, RemoveLeadingZeros, ReorderProgramForSchurTypeLinearSolver, RunCallbacks, SchurStructureToString, SetSummaryFinalCost, SetSummaryFinalCost, SetupCommonMinimizerOptions, Solve, Solve, StableIndependentSetOrdering, SummarizeReducedProgram, swap, TerminationTypeToString, TransposeForCompressedRowSparseStructure, Uniform, WriteArrayToFileOrDie, WriteStringToFileOrDie
-
-
-
-
Field Detail
-
UI
private ViewUserInterface UI
-
volumes
private double[][][][] volumes
-
conc
private double[][][][] conc
-
AIFslice
private double[][][] AIFslice
-
srcImage
private ModelImage srcImage
-
nC
private int nC
-
nR
private int nR
-
nS
private int nS
-
nT
private int nT
-
extents2D
private int[] extents2D
-
extents3D
private int[] extents3D
-
extents4D
private int[] extents4D
-
resolutions3D
float[] resolutions3D
-
units3D
int[] units3D
-
resolutions4D
float[] resolutions4D
-
units4D
int[] units4D
-
length
private int length
-
volume
private int volume
-
time
private double[] time
-
te
private double te
-
tr
private double tr
-
display
private int display
-
waitbar
private int waitbar
-
mask_npixel
private int mask_npixel
-
options_conc
private int options_conc
-
S0_nSamplesMin
private int S0_nSamplesMin
-
S0_nSamplesMax
private int S0_nSamplesMax
-
S0_thresh
private double S0_thresh
-
aif_enable
private int aif_enable
-
aif_recirculation
private int aif_recirculation
-
aif_nSlice
private int aif_nSlice
-
aif_semiMajorAxis
private double aif_semiMajorAxis
-
aif_semiMinorAxis
private double aif_semiMinorAxis
-
aif_pArea
private double aif_pArea
-
aif_pTTP
private double aif_pTTP
-
aif_pReg
private double aif_pReg
-
aif_diffPeak
private double aif_diffPeak
-
aif_nVoxelMax
private int aif_nVoxelMax
-
aif_nVoxelMin
private int aif_nVoxelMin
-
qr_enable
private int qr_enable
-
qr_b
private double qr_b
-
qr_a
private double qr_a
-
qr_r
private double qr_r
-
deconv_SVD_threshold
private double deconv_SVD_threshold
-
deconv_SVD_residual
private int deconv_SVD_residual
-
deconv_cSVD_threshold
private double deconv_cSVD_threshold
-
deconv_cSVD_residual
private int deconv_cSVD_residual
-
deconv_oSVD_OIthres
private double deconv_oSVD_OIthres
-
deconv_oSVD_residual
private int deconv_oSVD_residual
-
deconv_SS_residual
private int deconv_SS_residual
-
deconv_method
private java.lang.String[] deconv_method
-
par_kh
private double par_kh
-
par_rho
private double par_rho
-
par_kvoi
private double par_kvoi
-
mask_data
private byte[][][] mask_data
-
mask_aif
private byte[][][] mask_aif
-
mask_aif_slice
private byte[][] mask_aif_slice
-
gauss2FittingObservations
private int gauss2FittingObservations
-
gauss2FittingData
private double[] gauss2FittingData
-
doCurveIntersect
boolean doCurveIntersect
-
x_out
double[] x_out
-
y_out
double[] y_out
-
x_loc
double[] x_loc
-
y_loc
double[] y_loc
-
readTestImage
boolean readTestImage
-
test2PerfectGaussians
boolean test2PerfectGaussians
-
GxData
private double[] GxData
-
GxxData
private double[] GxxData
-
sigmas
private double[] sigmas
-
firstGaussianMean
double firstGaussianMean
-
firstGaussianMeanBin
int firstGaussianMeanBin
-
firstGaussianAmplitude
double firstGaussianAmplitude
-
firstGaussianStandardDeviation
double firstGaussianStandardDeviation
-
c1
double c1
-
secondGaussianMeanBin
int secondGaussianMeanBin
-
secondGaussianAmplitude
double secondGaussianAmplitude
-
secondGaussianStandardDeviation
double secondGaussianStandardDeviation
-
secondGaussianMean
double secondGaussianMean
-
c2
double c2
-
minSum
double minSum
-
maxSum
double maxSum
-
outputFilePath
private java.lang.String outputFilePath
-
inputFileName
private java.lang.String inputFileName
-
outputPrefix
private java.lang.String outputPrefix
-
fileIO
private FileIO fileIO
-
saveFileFormat
private int saveFileFormat
-
doSaveAllOutputs
private boolean doSaveAllOutputs
-
S0map
double[][][] S0map
-
bolus
int[] bolus
-
equalTimeSpacing
boolean equalTimeSpacing
-
AIF_ROI
byte[][] AIF_ROI
-
AIF_ROI_x
double[] AIF_ROI_x
-
AIF_ROI_y
double[] AIF_ROI_y
-
AIF_conc
double[] AIF_conc
-
AIF_voxels
int[][] AIF_voxels
-
data_peak1
double[] data_peak1
-
weights_peak1
double[] weights_peak1
-
fitParameters_peak1
double[] fitParameters_peak1
-
cv_est_parGV_peak1
double[] cv_est_parGV_peak1
-
TR
double TR
-
Tmax
double Tmax
-
Tmin
double Tmin
-
TRfine
double TRfine
-
nTfine
int nTfine
-
tGrid
double[] tGrid
-
dati_peak2
double[] dati_peak2
-
weights_peak2
double[] weights_peak2
-
fitParameters_peak2
double[] fitParameters_peak2
-
cv_est_parGV_peak2
double[] cv_est_parGV_peak2
-
AIF_fit_weights
double[] AIF_fit_weights
-
AIF_fit_parameters
double[] AIF_fit_parameters
-
AIF_fit_cv_est_parGV
double[] AIF_fit_cv_est_parGV
-
AIF_fit_gv
double[] AIF_fit_gv
-
t0_init
double t0_init
-
alpha_init
double alpha_init
-
beta_init
double beta_init
-
A_init
double A_init
-
td_init
double td_init
-
K_init
double K_init
-
tao_init
double tao_init
-
gaussStandardDeviationCheck
boolean gaussStandardDeviationCheck
-
gauss1FittingCheck
boolean gauss1FittingCheck
-
gauss2FittingCheck
boolean gauss2FittingCheck
-
GVFittingCheck
boolean GVFittingCheck
-
GVRecirculationCheck
boolean GVRecirculationCheck
-
doAIFTransfer
boolean doAIFTransfer
-
errorInMaskRoutine
boolean errorInMaskRoutine
-
intensity
double[] intensity
-
probDouble
double[] probDouble
-
cbv
double[][][] cbv
-
cbv_lc
double[][][] cbv_lc
-
cbf_svd
double[][][] cbf_svd
-
cbf_svd_residual
double[][][][] cbf_svd_residual
-
cbf_csvd
double[][][] cbf_csvd
-
cbf_csvd_residual
double[][][][] cbf_csvd_residual
-
cbf_osvd
double[][][] cbf_osvd
-
cbf_osvd_OI
double[][][] cbf_osvd_OI
-
cbf_osvd_residual
double[][][][] cbf_osvd_residual
-
mtt_svd
double[][][] mtt_svd
-
mtt_csvd
double[][][] mtt_csvd
-
mtt_osvd
double[][][] mtt_osvd
-
ttp
short[][][] ttp
-
fwhm
double[][][] fwhm
-
-
Constructor Detail
-
DSC_MRI_toolbox
public DSC_MRI_toolbox()
-
DSC_MRI_toolbox
public DSC_MRI_toolbox(ModelImage srcImage, java.lang.String outputFilePath, double te, double tr, int aif_nSlice, java.lang.String[] deconv_method)
-
DSC_MRI_toolbox
public DSC_MRI_toolbox(double[][][][] volumes, double te, double tr, int aif_nSlice, java.lang.String outputFilePath)
-
-
Method Detail
-
runAlgorithm
public void runAlgorithm()
-
getAIF_voxels
public int[][] getAIF_voxels()
-
DSC_mri_core
public void DSC_mri_core()
-
DSC_mri_mask
public void DSC_mri_mask()
-
backupSecondGaussianRoutine
private void backupSecondGaussianRoutine()
-
DSC_mri_conc
public void DSC_mri_conc()
-
DSC_mri_S0
public void DSC_mri_S0()
-
DSC_mri_aif
public void DSC_mri_aif()
-
DSC_mri_slice_selection_figure
public int DSC_mri_slice_selection_figure()
-
extractAIF
public void extractAIF()
-
DSC_mri_cbv
public void DSC_mri_cbv()
-
DSC_mri_cbv_lc
public void DSC_mri_cbv_lc()
-
DSC_mri_cbf
public void DSC_mri_cbf()
-
DSC_mri_SVD
public void DSC_mri_SVD()
-
DSC_mri_cSVD
public void DSC_mri_cSVD()
-
DSC_mri_oSVD
public void DSC_mri_oSVD()
-
DSC_mri_mtt
public void DSC_mri_mtt()
-
DSC_mri_ttp
public void DSC_mri_ttp()
-
DSC_mri_fwhm
public void DSC_mri_fwhm()
-
fwhm
double fwhm(double[] x, double[] yorg)
-
vol2mat
private double[][] vol2mat(double[][][][] data, byte[][][] selected)
-
GVfunction
private double[] GVfunction(double[] p)
-
fitGV_peak1
private void fitGV_peak1(double[] dati, double[] orgWeights)
-
fitGV_peak2
private void fitGV_peak2(double[] dati, double[] weights)
-
GVfunction_recirculation
private double[] GVfunction_recirculation(double[] p)
-
GVfunction_peak1
private double[] GVfunction_peak1(double[] p)
-
clusterHierarchical
private void clusterHierarchical(double[][] dati, int nCluster, double[][] centroidi)
-
calculateREG
private double[][] calculateREG(byte[][] mask)
-
cumtrapz
private double[] cumtrapz(double[] f)
-
trapz
private double trapz(double[] f)
-
trapz
private double[][] trapz(double[][][] f)
-
saveImageFile
private java.io.File saveImageFile(ModelImage img, java.lang.String dir, java.lang.String fileBasename, int fileType)
-
saveImageFile
private java.io.File saveImageFile(ModelImage img, java.lang.String dir, java.lang.String fileBasename, int fileType, boolean alwaysSave)
-
calcZeroX
public byte[] calcZeroX(double[] buffer)
-
edgeDetect
public byte[] edgeDetect(double[] secondDerivBuffer)
-
makeGxxKernels1D
private void makeGxxKernels1D()
Creates Gaussian derivative kernels.
-
makeGxKernels1D
private void makeGxKernels1D()
-
convolve
private void convolve(double[] imageBuffer, double[] kernelBuffer, double[] resultBuffer)Perform one-dimension convolution.- Parameters:
imageBuffer-kernelBuffer-resultBuffer- Problem is huge border effects. Convolution uses kernels of length going from 9 to 801 on buffer of length 100.
-
curveIntersect
public void curveIntersect(double[] x, double[] param)
-
curveintersect_local
public void curveintersect_local(double[] x1, double[] y1, double[] x2, double[] y2)
-
mminvinterp
public void mminvinterp(double[] x, double[] y, double yo)
-
interp1
public double[] interp1(double[] x, double[] y, double[] x_loc)
-
fitToExternalFunction
public boolean fitToExternalFunction(double[] x, double[] residuals, double[][] jacobian)- Specified by:
fitToExternalFunctionin classCeresSolver
-
-