Changeset: 200fe2ae55e7 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=200fe2ae55e7
Modified Files:
sql/backends/monet5/UDF/ssdb.c
Branch: ssdb
Log Message:
the obsid is stored in pnt[i].y, not pnt[i].x
diffs (24 lines):
diff --git a/sql/backends/monet5/UDF/ssdb.c b/sql/backends/monet5/UDF/ssdb.c
--- a/sql/backends/monet5/UDF/ssdb.c
+++ b/sql/backends/monet5/UDF/ssdb.c
@@ -657,8 +657,9 @@ SSDBcooking(Client cntxt, MalBlkPtr mb,
/* Step 3: loop over all input pixels and assign each group a unique
obsid */
- /* we misuse the obs_pixels struct to hold a mapping from grpid to
obsid,
- * because we can benefit from the _expand function */
+ /* we misuse the obs_pixels struct to hold a mapping from grpid (stored
in
+ * pnt[i].x) to obsid (stored in pnt[i].y), because we can benefit from
the
+ * _expand function */
grp2obs.cnt = 0;
grp2obs.cap = nr_pixs / 10; /* an educated guess */
if (!(grp2obs.pnt = GDKmalloc(grp2obs.cap * sizeof(point)))) {
@@ -679,7 +680,7 @@ SSDBcooking(Client cntxt, MalBlkPtr mb,
} else {
for (i = 0; i < grp2obs.cnt && tmpid < 0; i++) {
if (grp2obs.pnt[i].x == (int)pix_grpid[idx])
- tmpid = grp2obs.pnt[i].x;
+ tmpid = grp2obs.pnt[i].y;
}
if (tmpid >= 0) {
obsid[idx] = (unsigned int)tmpid;
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list