diff Meerwald/dwt_util.h @ 0:be303a3f5ea8

import
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Sun, 12 Aug 2007 13:14:34 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Meerwald/dwt_util.h	Sun Aug 12 13:14:34 2007 +0200
@@ -0,0 +1,41 @@
+#ifndef DWT_UTIL_H
+#define DWT_UTIL_H
+
+#include "dwt.h"
+
+#define LL 1
+#define LH 2
+#define HL 3
+#define HH 4
+
+#define COARSE LL
+#define HORIZONTAL LH
+#define VERTICAL HL
+#define DIAGONAL HH
+
+void copy_coeffs_from_dwt(double ** block_coeffs, double ** dwt_coeffs,
+  int level, int band, int width, int height);
+
+void copy_coeffs_to_dwt(double ** dwt_coeffs, double ** block_coeffs,
+  int level, int band, int width, int height);
+
+char *subband_name(int type);
+
+int subband_in_list(char *list, int type, int level);
+int subband_wp_in_list(char *list, char *name);
+
+void calc_subband_location(int cols, int rows, int type, int level, int *col, int *row);
+void calc_subband_wp_location(int cols, int rows, char *name, int *col, int *row);
+int calc_subband_wp_level(char *name);
+
+Pixel *get_dwt_data(Image_tree dwt, int level, int type);
+Image get_dwt_image(Image_tree dwt, int level, int type);
+Image_tree get_dwt_subband(Image_tree dwt, int level, int type);
+Pixel get_dwt_coeff(Image_tree dwt, int level, int type, int coeff);
+Pixel get_dwt_location(Image_tree dwt, int level, int type, int col, int row);
+
+void calc_subband(Image_tree p, Image_tree q, int type, double *min, double *max, double *error);
+void calc_subband_wp(Image_tree p, Image_tree q, char *name, double *min, double *max, double *error);
+
+
+#endif

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.