lpyramid.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. Laplacian Pyramid
  3. Copyright (C) 2006 Yangli Hector Yee
  4. This program is free software; you can redistribute it and/or modify it under the terms of the
  5. GNU General Public License as published by the Free Software Foundation; either version 2 of the License,
  6. or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  8. without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. See the GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License along with this program;
  11. if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
  12. */
  13. #ifndef _LPYRAMID_H
  14. #define _LPYRAMID_H
  15. #define MAX_PYR_LEVELS 8
  16. typedef struct _lpyramid lpyramid_t;
  17. lpyramid_t *
  18. lpyramid_create (float *image, int width, int height);
  19. void
  20. lpyramid_destroy (lpyramid_t *pyramid);
  21. float
  22. lpyramid_get_value (lpyramid_t *pyramid, int x, int y, int level);
  23. #endif /* _LPYRAMID_H */