MantisBT - Bender
View Issue Details
0013716BenderWeight Modulespublic2012-11-20 08:282013-04-02 14:22
Julien Finet 
johan andruejol 
normalmajorsometimes
resolvedfixed 
 
1.11.1 
0013716: Fail to write region.mha on installed windows build
When Bender is installed on windows, the current directory is not writtable.
When running Armature Weight, it fails to write region.mha on the current directory
Suggestion:
Condition the writing of the region.mha image with DumpDebugImages and write dump images in the same directory than the weight directory
No tags attached.
child of 0013701closed Yuanxin Liu Add module for skinning 
Issue History
2012-11-20 08:28Julien FinetNew Issue
2012-11-20 08:28Julien FinetStatusnew => assigned
2012-11-20 08:28Julien FinetAssigned To => Yuanxin Liu
2012-11-20 08:28Julien FinetRelationship addedchild of 0013701
2012-11-23 12:38Yuanxin LiuNote Added: 0031686
2012-11-23 12:38Yuanxin LiuStatusassigned => resolved
2012-11-23 12:38Yuanxin LiuResolutionopen => fixed
2013-01-17 17:53Julien FinetFixed in Version => 0.1
2013-03-04 08:51Julien FinetNote Added: 0032495
2013-03-04 08:51Julien FinetAssigned ToYuanxin Liu => johan andruejol
2013-03-04 08:51Julien FinetStatusresolved => assigned
2013-03-04 08:51Julien FinetTarget Version0.1 => 1.1
2013-03-04 08:51Julien FinetResolutionfixed => reopened
2013-03-04 08:51Julien FinetPriorityhigh => normal
2013-03-05 14:36johan andruejolNote Added: 0032511
2013-03-05 14:36johan andruejolStatusassigned => resolved
2013-03-05 14:36johan andruejolResolutionreopened => fixed
2013-03-05 14:44Julien FinetNote Added: 0032512
2013-03-05 14:44Julien FinetStatusresolved => assigned
2013-03-05 14:44Julien FinetResolutionfixed => reopened
2013-03-05 14:46Julien FinetNote Edited: 0032512bug_revision_view_page.php?bugnote_id=32512#r1056
2013-03-05 17:05johan andruejolNote Added: 0032514
2013-03-05 17:05johan andruejolStatusassigned => resolved
2013-03-05 17:05johan andruejolResolutionreopened => fixed
2013-03-05 17:49Julien FinetNote Added: 0032515
2013-03-06 10:17johan andruejolStatusresolved => feedback
2013-03-06 10:17johan andruejolResolutionfixed => reopened
2013-03-06 10:18johan andruejolNote Added: 0032520
2013-03-06 10:18johan andruejolStatusfeedback => resolved
2013-03-06 10:18johan andruejolResolutionreopened => fixed
2013-04-02 14:22Julien FinetFixed in Version0.1 => 1.1

Notes
(0031686)
Yuanxin Liu   
2012-11-23 12:38   
Fix is the git@github.com:kitleo/bender.git/heat-diffusion
(0032495)
Julien Finet   
2013-03-04 08:51   
Save the debug images in a subdirectory (e.g. "debug" or "dump") of the weight images directory passed as parameter.
Create such subdirectory if needed.
For the CLIs that don't take a weight directory as input, dump images in /tmp (use kwsys to know what is the tmp directory).
(0032511)
johan andruejol   
2013-03-05 14:36   
Compute Armature Weight:
http://public.kitware.com/gitweb?p=Bender/Bender.git;a=commit;h=926922cbd123f6dce0169148fca94d462040f354 [^]
and
http://public.kitware.com/gitweb?p=Bender/Bender.git;a=commit;h=b7cba3aebb7b11994de3bcbadcca556ffe3d7fc4 [^]

Pose Body and Pose Labelmap:
http://public.kitware.com/gitweb?p=Bender/Bender.git;a=commit;h=124a360e238f1ef0e68546a40910ff627e2d35f9 [^]

Volume Skinning:
http://public.kitware.com/gitweb?p=Bender/Bender.git;a=commit;h=36a0d1cffcc90215f836af0b5ad9d99e4655bf22 [^]
(0032512)
Julien Finet   
2013-03-05 14:44   
(edited on: 2013-03-05 14:46)
Please use env variable to find the temporary directory:
http://stackoverflow.com/questions/8087805/how-to-get-system-or-user-temp-folder-in-unix-and-windows [^]
And feel free to factorize all these functions into some bender util/io lib classes methods

(0032514)
johan andruejol   
2013-03-05 17:05   
Using env and factorized: http://public.kitware.com/gitweb?p=Bender/Bender.git;a=commit;h=263f9873de33c980313978fd252eba5d48945ed6 [^]
(0032515)
Julien Finet   
2013-03-05 17:49   
The code to find the temp directory could have been factorized, maybe creating a function such as GetDebugDirectory() would be better (than duplicating the WriteImage/WritePolyData function:
(0032520)
johan andruejol   
2013-03-06 10:18   
GetDebugDirectory() function:
http://public.kitware.com/gitweb?p=Bender/Bender.git;a=commit;h=14952d05227b60330df7d738959e0b749c6b2c88 [^]