![]() |
aimsdata
4.7.0
Neuroimaging data handling
|
Filter fibers by randomly discarding a proportion of them. More...
#include <aims/fibers/bundleSampler.h>
Public Member Functions | |
BundleSampler (float percent, const std::string &bundle_name, const std::string &sampled_bundle_name, int mode) | |
Parameters: More... | |
BundleSampler (float percent, const std::string &bundle_name, const std::string &sampled_bundle_name, int mode, bool discarded) | |
Parameters: More... | |
virtual | ~BundleSampler () |
![]() | |
void | addBundleListener (BundleListener &) |
![]() | |
virtual | ~BundleListener () |
Protected Member Functions | |
virtual void | bundleStarted (const aims::BundleProducer &, const aims::BundleInfo &) |
virtual void | bundleTerminated (const aims::BundleProducer &, const aims::BundleInfo &) |
virtual void | fiberStarted (const aims::BundleProducer &, const aims::BundleInfo &, const aims::FiberInfo &) |
virtual void | fiberTerminated (const aims::BundleProducer &, const aims::BundleInfo &, const aims::FiberInfo &) |
virtual void | newFiberPoint (const aims::BundleProducer &, const aims::BundleInfo &, const aims::FiberInfo &, const aims::FiberPoint &) |
virtual void | noMoreBundle (const aims::BundleProducer &) |
![]() | |
void | startBundle (const BundleInfo &) |
void | terminateBundle (const BundleInfo &) |
void | startFiber (const BundleInfo &, const FiberInfo &) |
void | terminateFiber (const BundleInfo &, const FiberInfo &) |
void | addFiberPoint (const BundleInfo &, const FiberInfo &, const FiberPoint &) |
void | noMoreBundle () |
Filter fibers by randomly discarding a proportion of them.
Discarded fibers may optionally be kept in an additional "discarded" bundle.
Definition at line 55 of file bundleSampler.h.
aims::BundleSampler::BundleSampler | ( | float | percent, |
const std::string & | bundle_name, | ||
const std::string & | sampled_bundle_name, | ||
int | mode | ||
) |
Parameters:
percent | proportion of accepted fibers |
bundle_name | ? |
mode | 0: fibers are randomly selected (default), 1: at least one fiber per bundle is selected |
aims::BundleSampler::BundleSampler | ( | float | percent, |
const std::string & | bundle_name, | ||
const std::string & | sampled_bundle_name, | ||
int | mode, | ||
bool | discarded | ||
) |
Parameters:
percent | proportion of accepted fibers |
bundle_name | ? |
mode | 0: fibers are randomly selected (default), 1: at least one fiber per bundle is selected |
discarded | if true, discarded fibers will be used in an additional bundle with the name "discarded". |
|
virtual |
|
protectedvirtual |
Reimplemented from aims::BundleListener.
|
protectedvirtual |
Reimplemented from aims::BundleListener.
|
protectedvirtual |
Reimplemented from aims::BundleListener.
|
protectedvirtual |
Reimplemented from aims::BundleListener.
|
protectedvirtual |
Reimplemented from aims::BundleListener.
|
protectedvirtual |
Reimplemented from aims::BundleListener.