void tracking_window::subject2mni(image::vector<3>& pos) { if(mi3.get() && mi3->progress == 2) { mi3->T(pos); image::vector<3> result; mi3->bnorm_data(pos,result); pos = result; fa_template_imp.to_mni(pos); } else if(!handle->fib_data.trans_to_mni.empty()) { image::vector<3> mni; image::vector_transformation(pos.begin(),mni.begin(), handle->fib_data.trans_to_mni,image::vdim<3>()); pos = mni; } }
void addPoint(const image::vector<3,short>& new_point) { if(in_range(new_point.x(),new_point.y(),new_point.z())) roi_filter[new_point.x()][new_point.y()][new_point.z()] = 1; }
const float* get_bvec(void) const { return &*bvec.begin(); }