import(methods, parallel, oro.nifti, oro.dicom, adimpro, gsl, rgl, awsMethods, quadprog)
export(dtiData, readDWIdata, subsetg, combineDWIdata, awssigmc, awslsigmc, afsigmc,
aflsigmc, dkiIndices, showFAColorScale, tensor2medinria, medinria2tensor)

importFrom("grDevices", "col2rgb", "dev.off", "grey", "heat.colors",
importFrom("graphics", "plot", "axis", "contour", "identify", "legend",
importFrom("stats", "IQR", "as.dist", "bw.nrd", "coef", "coefficients",
"density", "dnorm", "lm", "median", "nls", "optim",
"optimize", "qchisq", "qnorm", "quantile", "rchisq",

useDynLib(dti, .registration = TRUE, .fixes = "C_")

"lines", "par", "text", "title", "image")
importFrom("parallel", "makeCluster", "parLapply", "stopCluster", "detectCores")
importFrom("oro.nifti", "readAFNI", "readANALYZE", "nifti", "readNIfTI", "writeNIfTI")
importFrom("rgl", "rgl.triangles", "rgl.lines", "rgl.points", "open3d", "par3d",

importFrom("adimpro", "show.image", "make.image", "extract.image", "rimage")

if (utils::packageVersion("dplyr") > "0.5.0") {

# Computed on 3-jul-2015 for new CRAN checks
importFrom("graphics", "axis", "box", "contour", "image", "layout", "lines", "matplot", "par", "plot", "points", "segments", "text")

useDynLib(dtw, .registration = TRUE, .fixes="C_")

import(matrixcalc, ff, vcd, lattice, Matrix)

importFrom("graphics", "axis", "lines", "plot", "legend", "hist", "points",
importFrom("stats", "qnorm", "qt", "sd", "var", "cov", "cor", "aov",
"binom.test", "prop.test", "t.test", "chisq.test", "fisher.test",
"quantile", "anova", "median", "weighted.mean", "dbeta", "dbinom",
"dcauchy", "dchisq", "dexp", "df", "dgamma", "dgeom", "dhyper",
"dlnorm", "dnbinom", "dnorm", "dpois", "dt", "dunif", "dweibull",

importFrom(RCurl, getURL, url.exists, curlPerform, basicTextGatherer, curlEscape)
importFrom(XML, newXMLNode, addChildren, toString.XMLNode) # for `dvBuildMetadata`

importFrom(XML, newXMLNode, addChildren, toString.XMLNode, addAttributes) # for `dvBuildMetadata`

importFrom(RCurl, getURL, url.exists, curlPerform, basicTextGatherer)