docsoph / b-tk

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

Matlab Binaries: btkCropAcquisition #75

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I changed line 32 in btkCropAcquisition.m

29 % Data to keep
30 % - Point
31 pidx = (startAt:startAt+numFrames-1)-ff+1;
32 pv = btkGetPointsValues(h);
33 pv  = pv(pidx,:);

to: 

32 pv = btkGetMarkersValues(h);

now it seems ok for my c3d-files.

Original issue reported on code.google.com by ralf.kredel on 29 Jan 2014 at 9:48

GoogleCodeExporter commented 8 years ago
Can you explain your issue with the original code and your C3D files?

The function btkGetMarkersValues is a specialization of the function 
btkGetPointsValues which extracts only markers (and not angles, forces, 
moments, etc.).

Original comment by arnaud.barre on 29 Jan 2014 at 10:08

GoogleCodeExporter commented 8 years ago
Matlab2013A 64bit gives me the following error:

Error using btkGetPointsValues
Two inputs required.

Error in btkCropAcquisition (line 32)
pv = btkGetPointsValues(h);

Original comment by ralf.kredel on 30 Jan 2014 at 5:36

GoogleCodeExporter commented 8 years ago
I have just tried the function with Matlab R2013a under MacOS X (10.8) and I 
have no issue.

Which version of BTK do you have? You can use the function btkGetVersion() to 
display the release number.

Is it possible, for any reason, you modified the original code and you replaced 
the line 32? There is a similar function named btkGetPointValues which requires 
two inputs, while btkGetPointsValues requires only one.

Original comment by arnaud.barre on 31 Jan 2014 at 1:16

GoogleCodeExporter commented 8 years ago
Sorry for the late reply. I use the 0.3.0 64bit-Version.
I changed again line 32 to 
pv = btkGetPointsValues(h);
but I still get the same error as before:

Error using btkGetPointsValues
Two inputs required.

Error in btkCropAcquisition (line 33)
pv = btkGetPointsValues(h);

Original comment by ralf.kredel on 11 Feb 2014 at 11:45

GoogleCodeExporter commented 8 years ago
I found the reason of your problem. For an unknown reason the code of the 
function btkGetPointsValues was replaced by the code of the function 
btkGetPoint in the ZIP file for Matlab 64-bit under Windows!

I cannot repackage the files right now, but I can send you the true file for 
the function btkGetPointsValues compiled for Windows 7 (64-bit) and compatible 
with Matlab 2010a (64-bit) and greater.

Original comment by arnaud.barre on 12 Feb 2014 at 11:07

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, now it works with the original code in btkCropAcquisition!

Original comment by ralf.kredel on 12 Feb 2014 at 2:05