mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix bug
* Adding wrong Y to blob
This commit is contained in:
parent
fb928482b4
commit
4f6c8e5ec8
@ -27,13 +27,15 @@ array_t *imlib_count_blobs(struct image *image)
|
|||||||
if (p->x < blob->x) {
|
if (p->x < blob->x) {
|
||||||
blob->x = p->x;
|
blob->x = p->x;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p->y < blob->y) {
|
if (p->y < blob->y) {
|
||||||
blob->y = y;
|
blob->y = p->y;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p->x > blob->w) {
|
if (p->x > blob->w) {
|
||||||
blob->w = p->x;
|
blob->w = p->x;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p->y > blob->h) {
|
if (p->y > blob->h) {
|
||||||
blob->h = p->y;
|
blob->h = p->y;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user