20 #include <MitkFiberTrackingExports.h>
44 P = (
float*) malloc(
sizeof(
float)*1000);
61 P[cnt] = P[cnt-1] + p;
66 inline int draw(
float prob)
68 float r = prob*P[cnt-1];
92 return objs[draw(prob)];
106 return (P[idx+1]-P[idx])/P[cnt-1];
111 for (
int i = 1; i< cnt;i++)
void add(float p, EndPoint obj)
DataCollection - Class to facilitate loading/accessing structured data.
Samples new tract from surrounding fiber segments.
EndPoint drawObj(float prob)
float probFor(EndPoint &t)