getSPMbinary | R Documentation |
Extracts voxel coordinates where pet = 1
(i.e., statistically significant points)
from a binary NIfTI file produced by an external SPM analysis.
Only voxels from a specific brain slice (z = paramZ
) are retained.
The output data frame is structured identically to that of getPoints
,
allowing direct comparison between SCC- and SPM-detected regions via calculateMetrics
.
getSPMbinary(niftiFile, paramZ = 35)
niftiFile |
|
paramZ |
|
This function converts externally generated SPM results into a format compatible
with SCC analysis tools in neuroSCC
.
Use getDimensions
to inspect the full coordinate space if needed.
A data frame with the following columns:
x
, y
– Coordinates of significant voxels at the specified slice.
getPoints
for SCC-based detection.
getDimensions
for obtaining full coordinate grids.
calculateMetrics
for evaluating SCC vs. SPM detection performance.
# Load a sample binary NIfTI file (SPM result)
niftiFile <- system.file("extdata", "binary.nii.gz", package = "neuroSCC")
detectedSPM <- getSPMbinary(niftiFile, paramZ = 35)
# Show detected points
head(detectedSPM)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.