summaryrefslogtreecommitdiffstats
path: root/src/trace/siox.h
diff options
context:
space:
mode:
authorBob Jamison <ishmalius@gmail.com>2006-03-25 05:57:21 +0000
committerishmal <ishmal@users.sourceforge.net>2006-03-25 05:57:21 +0000
commit72c233de4b889debcc509186be8114abbb06f6aa (patch)
tree8dd159b66503e9ae24d4bd9665591d5fae6fb9a8 /src/trace/siox.h
parentinitial hookup of siox into Tracer. much work still to be done, and testing too (diff)
downloadinkscape-72c233de4b889debcc509186be8114abbb06f6aa.tar.gz
inkscape-72c233de4b889debcc509186be8114abbb06f6aa.zip
Add PackedPixelMap to make pixbuf->pixel array conversion much cleaner. Also make certain that packed pixels are unsigned long.
(bzr r294)
Diffstat (limited to 'src/trace/siox.h')
-rw-r--r--src/trace/siox.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/trace/siox.h b/src/trace/siox.h
index 4d92a9182..bb955f28a 100644
--- a/src/trace/siox.h
+++ b/src/trace/siox.h
@@ -215,7 +215,7 @@ public:
* @return <CODE>true</CODE> if the segmentation algorithm succeeded,
* <CODE>false</CODE> if segmentation is impossible
*/
- bool segmentate(long *image, int imageSize,
+ bool segmentate(unsigned long *image, int imageSize,
float *cm, int cmSize,
int smoothness, double sizeFactorToKeep);
@@ -316,7 +316,7 @@ public:
* @param cm confidence matrix to be searched
* @param image image to be searched
*/
- void fillColorRegions(float *cm, int cmSize, long *image);
+ void fillColorRegions(float *cm, int cmSize, unsigned long *image);
private:
@@ -375,7 +375,7 @@ private:
/**
* Stores Tupels for fast access to nearest background/foreground pixels.
*/
- std::map<long, Tupel> hs;
+ std::map<unsigned long, Tupel> hs;
/** Size of the biggest blob.*/
int regionCount;