Commit bc170c2e authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

applied GIMP coding style, switch to glib functions for memory allocation.

2005-07-08  Sven Neumann  <sven@gimp.org>

	* app/base/segmentator.[ch]: applied GIMP coding style, switch to
	glib functions for memory allocation.
parent 3b8751e5
2005-07-08 Sven Neumann <sven@gimp.org>
* app/base/segmentator.[ch]: applied GIMP coding style, switch to
glib functions for memory allocation.
2005-07-08 Sven Neumann <sven@gimp.org>
* app/base/Makefile.am
......
This diff is collapsed.
/*
* The GIMP Foreground Extraction Utility
* segmentator.h - interface to segmentator.c.
* The GIMP Foreground Extraction Utility
* segmentator.c - main algorithm.
*
* For algorithm documentation refer to:
* G. Friedland, K. Jantz, L. Knipping, R. Rojas:
* "Image Segmentation by Uniform Color Clustering -- Approach and Benchmark Results",
* Technical Report B-05-07, Department of Computer Science, Freie Universitaet Berlin, June 2005.
* G. Friedland, K. Jantz, L. Knipping, R. Rojas:
* "Image Segmentation by Uniform Color Clustering
* -- Approach and Benchmark Results",
* Technical Report B-05-07, Department of Computer Science,
* Freie Universitaet Berlin, June 2005.
* http://www.inf.fu-berlin.de/inst/pubs/tr-b-05-07.pdf
*
* Algorithm idea by Gerald Friedland.
* This implementation is Copyright (C) 2005 by Gerald Friedland <fland@inf.fu-berlin.de>
* and Kristian Jantz <jantz@inf.fu-berlin.de>.
*
*
* Algorithm idea by Gerald Friedland.
* This implementation is Copyright (C) 2005
* by Gerald Friedland <fland@inf.fu-berlin.de>
* and Kristian Jantz <jantz@inf.fu-berlin.de>.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
......@@ -24,19 +27,25 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
#ifndef __SEGMENTATE_H__
#define __SEGMENTATE_H__
#ifndef __SEGMENTATOR_H__
#define __SEGMENTATOR_H__
/* Amount of color dimensions in one point */
#define DIMS 3
/* Public functions */
float *segmentate(unsigned int *rgbs, float *confidencematrix, int xres,
int yres, float limits[DIMS], int smoothness);
float * segmentate (guint *rgbs,
float *confidencematrix,
int xres,
int yres,
float limits[DIMS],
int smoothness);
#endif /* __SEGMENTATE_H__ */
#endif /* __SEGMENTATOR_H__ */
This diff is collapsed.
/*
* The GIMP Foreground Extraction Utility
* segmentator.h - interface to segmentator.c.
* The GIMP Foreground Extraction Utility
* segmentator.c - main algorithm.
*
* For algorithm documentation refer to:
* G. Friedland, K. Jantz, L. Knipping, R. Rojas:
* "Image Segmentation by Uniform Color Clustering -- Approach and Benchmark Results",
* Technical Report B-05-07, Department of Computer Science, Freie Universitaet Berlin, June 2005.
* G. Friedland, K. Jantz, L. Knipping, R. Rojas:
* "Image Segmentation by Uniform Color Clustering
* -- Approach and Benchmark Results",
* Technical Report B-05-07, Department of Computer Science,
* Freie Universitaet Berlin, June 2005.
* http://www.inf.fu-berlin.de/inst/pubs/tr-b-05-07.pdf
*
* Algorithm idea by Gerald Friedland.
* This implementation is Copyright (C) 2005 by Gerald Friedland <fland@inf.fu-berlin.de>
* and Kristian Jantz <jantz@inf.fu-berlin.de>.
*
*
* Algorithm idea by Gerald Friedland.
* This implementation is Copyright (C) 2005
* by Gerald Friedland <fland@inf.fu-berlin.de>
* and Kristian Jantz <jantz@inf.fu-berlin.de>.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
......@@ -24,19 +27,25 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*/
#ifndef __SEGMENTATE_H__
#define __SEGMENTATE_H__
#ifndef __SEGMENTATOR_H__
#define __SEGMENTATOR_H__
/* Amount of color dimensions in one point */
#define DIMS 3
/* Public functions */
float *segmentate(unsigned int *rgbs, float *confidencematrix, int xres,
int yres, float limits[DIMS], int smoothness);
float * segmentate (guint *rgbs,
float *confidencematrix,
int xres,
int yres,
float limits[DIMS],
int smoothness);
#endif /* __SEGMENTATE_H__ */
#endif /* __SEGMENTATOR_H__ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment