Another month passed and new progresses were realized on the new API. All the code to create filters, link them together, and run a pipeline is available!
###Examples with the new API###
WARNING: The following examples wants to illustrate the new syntax. Some classnames representing algorithms might not be implemented or could be modified later.
####File converter####
One of the simplest but very useful pipeline is the conversion of file formats. The following code snippet show the C++ code needed to create such converter.
####Batch file converter####
To go further with the previous example, you can image to create a batch to convert several files. Traditionally, it means to loop some code. However, the new pipeline will handle that automatically. The data passed through each algorithm composing the pipeline can be multi-nodal (e.g. pass several trials at the same time). Based on the configuration of each algorithm these nodes can be processed independently or together.
####Files fusion####
Another example coming from BTK-0.x is the fusion of files together. For example the fusion of a set of files coming from an acquisition realized with a Motion Analysis system (ANB, TRB, CAL, XLS) to a C3D file requires few lines of code.
Imagine this filter with vector of files. It will simplify the work of the programmer to create a batch to merge files together.
####More advanced examples to come####
The previous examples were presented to show the syntax of the new API and to illustrate the simplicity of the creation of a pipeline. During the next months, more algorithms will be implemented which will focus on the generation of the output used in a clinical gait analysis (model configuration, model calibration, model reconstruction, joint kinematics, joint kinetics, event detection, etc.). This will give the possibility to create very powerful data processing in few minutes!