-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature to convert a tracks file to a density map #114
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks to port Thomas' work in anima.
Can you statisfy "request changes" please.
Anima/math-tools/common_tools/shapes_to_density/animaShapesToDensity.cxx
Outdated
Show resolved
Hide resolved
Anima/math-tools/common_tools/shapes_to_density/animaShapesToDensity.cxx
Show resolved
Hide resolved
outImage->SetPixel(index, 1); | ||
} | ||
|
||
double dist = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe dist need to be initialize to others values than 2. In this case, please create command line parameter.
|
||
double dist = 2; | ||
double dx, dy, dz; | ||
while(dist >= 1.5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe hard coded "1.5" value need a command line parameter to fix to another value.
Anima/math-tools/common_tools/shapes_to_density/animaShapesToDensity.cxx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks to port Thomas' work in anima.
Can you statisfy "request changes" please.
Anima/math-tools/common_tools/shapes_to_density/animaShapesToDensity.cxx
Show resolved
Hide resolved
@Florent2305 I modified the main algorithm to compute the density map, because it seems to me that Thomas Durantel's implementation has drawbacks. In this new implementation, the sgn function is no longer used, and neither is the dist variable, so these change requests no longer apply. Could you please have a look at this new implementation of the main algorithm, and tell me if there are parts to modify? |
Written by Thomas Durantel @todurante.