BTK Python wrapper  0.3dev.0
Python bindings for the Biomechanical ToolKit library (BTK)
Public Member Functions | List of all members
btk.btkWrenchDownsampleFilter Class Reference

Downsample data stored in a wrench. More...

Public Member Functions

def GetInput
 
def GetInputNumber
 
def GetOutput
 
def GetOutputNumber
 
def GetTimestamp
 
def GetUpDownRatio
 
def GetValidInputNumber
 
def ResetState
 
def SetInput
 
def SetUpDownRatio
 
def Update
 

Detailed Description

Downsample data stored in a wrench.

Downsample data stored in a wrench

To downsample data, you need to set the up/down sample ratio using the method SetUpDownRatio().
The given value is an integer corresponding to the ratio used to extract only the value of interest.
For example, if you have 200 frames and a ratio of 10, then 20 frames will be extracted (one frame each 10 frames).

Member Function Documentation

def btk.btkWrenchDownsampleFilter.GetInput (   self )
GetInput(self) -> btkWrench

Gets the input registered with this process.
def btk.btkWrenchDownsampleFilter.GetInputNumber (   self )
GetInputNumber(self) -> int

Returns the number of inputs.
def btk.btkWrenchDownsampleFilter.GetOutput (   self )
GetOutput(self) -> btkWrench

Returns the output created with this process.
def btk.btkWrenchDownsampleFilter.GetOutputNumber (   self )
GetOutputNumber(self) -> int

Returns the number of outputs.
def btk.btkWrenchDownsampleFilter.GetTimestamp (   self )
GetTimestamp(self) -> unsigned long

Returns the timestamp of the object.
def btk.btkWrenchDownsampleFilter.GetUpDownRatio (   self )
GetUpDownRatio(self) -> int

Gets the ratio used to downsample the data.
def btk.btkWrenchDownsampleFilter.GetValidInputNumber (   self )
GetValidInputNumber(self) -> int

Returns the number of inputs which are valid (i.e. not null).
def btk.btkWrenchDownsampleFilter.ResetState (   self )
ResetState(self)

Reset the state of the process. Usefull when an exception was thrown during the generation of the data.
def btk.btkWrenchDownsampleFilter.SetInput (   self,   args  )
SetInput(self, btkWrench)

Sets the input required with this process.
def btk.btkWrenchDownsampleFilter.SetUpDownRatio (   self,   args  )
SetUpDownRatio(self, int)

Sets the ratio used to downsample the data.
def btk.btkWrenchDownsampleFilter.Update (   self )
Update(self)

Update the pipeline and then all the data inside. Recursive method which
 1) determines the processes to update
 2) generate the data by using the GenerateData() method.