This function converts a vectorized image patch back into an antsImage such that it may be displayed in its extrinsic dimensionality.

ripmmarcBasisImage(canonicalFrame, patchBasisVector, eps = 1e-12)

Arguments

canonicalFrame

canonical frame image generated by ripmmarc

patchBasisVector

the basis vector to convert to image space

eps

small value threshold to help generate mask from canonicalFrame

Value

antsImage

Examples

img <- antsImageRead( getANTsRData( "rand" ) ) img = resampleImage( img, c( 32, 32 ) ) msk <- thresholdImage( img, quantile( img[ img > 0 ], 0.5 )[1], max( img ) ) ripped <- ripmmarc( img, msk, patchRadius=1, patchSamples=20, patchVarEx = 2 ) bimg = ripmmarcBasisImage( ripped$canonicalFrame, ripped$basisMat[1,] )