mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Use FB for intergal images for OMV1/2
This commit is contained in:
parent
74cba716b7
commit
76c96cab61
@ -11,17 +11,13 @@
|
||||
#include <arm_math.h>
|
||||
#include "imlib.h"
|
||||
#include "xalloc.h"
|
||||
#include "framebuffer.h"
|
||||
|
||||
void imlib_integral_image_alloc(struct integral_image *i_img, int w, int h)
|
||||
{
|
||||
i_img->w = w;
|
||||
i_img->h = h;
|
||||
#ifdef OPENMV2
|
||||
i_img->data = xalloc(w*h*sizeof(*i_img->data));
|
||||
#else
|
||||
#include "framebuffer.h"
|
||||
i_img->data = (uint32_t*) (fb->pixels+(fb->w * fb->h));
|
||||
#endif
|
||||
}
|
||||
|
||||
void imlib_integral_image(struct image *src, struct integral_image *sum)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user