convertPatchCoordsToSpatialPoints.Rd
High-level function for handling the converion between voxel and corner-based indices of patches to center and physical-based landmark coordinates.
convertPatchCoordsToSpatialPoints(patchCoords, img, patchSize = 32)
patchCoords | input patch coordinates (usually from |
---|---|
img | reference image defining spatial domain |
patchSize | vector or scalar defining patch dimensions |
spatial patch coordinates
Avants BB
library(ANTsR) img <- ri( 1 ) %>% iMath( "Normalize" ) mask = randomMask( getMask( img ), 20 ) features = deepFeatures( img, mask, patchSize = 32 )#>coords = convertPatchCoordsToSpatialPoints( features$patchCoords, img )