Jasvirbahl / b-tk

Automatically exported from code.google.com/p/b-tk
0 stars 0 forks source link

metadata and residuals changes not retained after saving with matlab warper #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. with the matlab warper 0.1.10 changes are not retained after saving
2. btkSetPointResiduals(hc,i,condition_interp(:,i)) with condition_interp set 
to -1 if 1 after saving with btkWriteAcquisition
3. md = btkRemoveMetaData(hc,'POINT','UNITS'), there's still the metadata 
'UNITS' after saving.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
matlab warper 0.1.10, matlab 7.11.0.584 (R2010b), windows 7 pro 64bits

Please provide any additional information below.

Original issue reported on code.google.com by fthena...@gmail.com on 18 Oct 2012 at 1:35

GoogleCodeExporter commented 8 years ago
The metadata POINT:UNITS is required in the C3D file format [1]. So if you 
delete it, then BTK will automatically regenerate it based on the unit set in 
the acquisition. You can modify this unit by using the Matlab function 
btkSetPointUnit [2]

The second case is related to the method used in BTK 0.1 to set the residuals. 
You need also to set the camera's mask to -1 to take effect on the residual. 
This behavior was introduced to follow the rules in the C3D file format. 
However, this will be modified in BTK 0.2 as several users has the problem than 
you. In BTK 0.2, the camera's mask will be removed.

Can you confirm that setting the mask and the residual do what you want? I will 
then close this issue if everything is fine for you.

[1] http://www.c3d.org/HTML/units.htm
[2] https://b-tk.googlecode.com/svn/doc/Matlab/0.1/classbtk_set_point_unit.html

Original comment by arnaud.barre on 18 Oct 2012 at 9:36

GoogleCodeExporter commented 8 years ago
Problem solved !

Original comment by fthena...@gmail.com on 19 Oct 2012 at 3:39

GoogleCodeExporter commented 8 years ago

Original comment by arnaud.barre on 22 Oct 2012 at 4:49