forked from darktable-org/darktable
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor clean-up, remove traling while spaces.
- Loading branch information
Showing
32 changed files
with
121 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,20 +17,20 @@ | |
*/ | ||
|
||
/* | ||
eucledian distance transform for darktable Hanno Schwalm ([email protected]) 2021/09 | ||
eucledian distance transform for darktable Hanno Schwalm ([email protected]) 2021/09 | ||
- adopted to C | ||
- omp support | ||
- reduced alloc/free using dt_alloc_align variants for better debug support | ||
- reduced alloc/free using dt_alloc_align variants for better debug support | ||
- tuned for performance in collaboration with Ingo Weyrich ([email protected]) from rawtherapee | ||
The original code is from: | ||
*** Original copyright note *** | ||
Implementation of the distance transform algorithm described in: | ||
Distance Transforms of Sampled Functions | ||
Pedro F. Felzenszwalb and Daniel P. Huttenlocher | ||
Cornell Computing and Information Science TR2004-1963 | ||
Cornell Computing and Information Science TR2004-1963 | ||
Copyright (C) 2006 Pedro Felzenszwalb | ||
This program is free software; you can redistribute it and/or modify | ||
|
@@ -129,7 +129,7 @@ float dt_image_distance_transform(float *const restrict src, float *const restri | |
#endif | ||
{ | ||
float *f = dt_alloc_align_float(maxdim); | ||
float *z = dt_alloc_align_float(maxdim + 1); | ||
float *z = dt_alloc_align_float(maxdim + 1); | ||
float *d = dt_alloc_align_float(maxdim); | ||
int *v = dt_alloc_align(64, maxdim * sizeof (int)); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.