View source: R/antsrMetric_class.R
| antsrMetricSetNumberOfHistogramBins | R Documentation | 
set histogram bins image to image metric
antsrMetricSetNumberOfHistogramBins(metric, nBins)
| metric | an 'antsrMetric' of type 'MattesMutualInformation' or 'JointHistogramMutualInformation' | 
| nBins | number of bins (minimum is 5 even for binary data) | 
x <- antsImageRead(getANTsRData("r16"))
y <- antsImageRead(getANTsRData("r30"))
metric <- antsrMetricCreate(x, y, type = "MattesMutualInformation")
antsrMetricSetNumberOfHistogramBins(metric, 12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.