C++ function called by calcHemisphere
to compute the objective function that evaluates the consistency of the mid-sagittal plan. For internal use.
1 2 3 | calcHemi_cpp(coordsI, coordsJ, ls_indexK, n_num, value, n,
i_pos, j_pos, angle_pos,
penaltyNA, sd_data, p, symetrie)
|
coordsI |
the coordinates of each voxel along the first coordinate. integer vector. |
coordsJ |
the coordinates of each voxel along the second coordinate. integer vector. |
ls_indexK |
the index of the voxels on each slice. list. |
n_num |
the number of slices. integer. |
value |
the contrast parameter value for each voxel. numeric vector. |
n |
the number of voxels. integer. |
i_pos |
the first coordinate of the center of the mid-sagittal plane. numeric. |
j_pos |
the second coordinate of the center of the mid-sagittal plane. numeric. |
angle_pos |
the angle between the axis of the second coordinate and the mid-sagittal plane. numeric. |
penaltyNA |
a penalty factor for the percent of voxel without controlateral correspondant. numeric. |
sd_data |
the standard deviation of the parameter. numeric. |
p |
the penalization factor. positive numeric. |
symetrie |
the type of objective function. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.