Skip to content

Instantly share code, notes, and snippets.

@Baticsute
Created October 7, 2020 02:55
Show Gist options
  • Save Baticsute/d8b22e2e3985001f69c1b19e1cc9e4e3 to your computer and use it in GitHub Desktop.
Save Baticsute/d8b22e2e3985001f69c1b19e1cc9e4e3 to your computer and use it in GitHub Desktop.
Deal with missing leargist.pxd when install pyleargist
cdef extern from "stdlib.h" nogil:
void *memmove(void *str1, void *str2, size_t n)
cdef extern from "standalone_image.h":
ctypedef struct color_image_t:
int width
int height
float *c1 # R
float *c2 # G
float *c3 # B
cdef color_image_t* color_image_new(int width, int height)
cdef void color_image_delete(color_image_t *image)
cdef extern from "gist.h":
cdef float* color_gist_scaletab(color_image_t* src, int nblocks, int n_scale, int* n_orientations)
cdef void free_desc(float *d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment