|
@@ -31,7 +31,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
namespace felzenszwalb {
|
|
|
// random color
|
|
|
-rgb random_rgb() {
|
|
|
+static rgb random_rgb() {
|
|
|
rgb c;
|
|
|
double r;
|
|
|
|
|
@@ -61,7 +61,7 @@ static inline float diff(image<float> *r, image<float> *g, image<float> *b,
|
|
|
* min_size: minimum component size (enforced by post-processing stage).
|
|
|
* num_ccs: number of connected components in the segmentation.
|
|
|
*/
|
|
|
-image<rgb> *segment_image(image<rgb> *im, float sigma, float c, int min_size,
|
|
|
+static image<rgb> *segment_image(image<rgb> *im, float sigma, float c, int min_size,
|
|
|
int *num_ccs) {
|
|
|
//clog << "\nsegment_image: Sprung in die Methode" << endl;
|
|
|
int width = im->width();
|
|
@@ -81,9 +81,9 @@ image<rgb> *segment_image(image<rgb> *im, float sigma, float c, int min_size,
|
|
|
imRef(b, x, y) = imRef(im, x, y).b;
|
|
|
}
|
|
|
}
|
|
|
- image<float> *smooth_r = smooth(r, sigma);
|
|
|
- image<float> *smooth_g = smooth(g, sigma);
|
|
|
- image<float> *smooth_b = smooth(b, sigma);
|
|
|
+ image<float> *smooth_r = smooth2(r, sigma);
|
|
|
+ image<float> *smooth_g = smooth2(g, sigma);
|
|
|
+ image<float> *smooth_b = smooth2(b, sigma);
|
|
|
delete r;
|
|
|
delete g;
|
|
|
delete b;
|