⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 map.h

📁 该程序把数字图像处理与小波变换结合起来
💻 H
字号:
#ifndef __MAP_H_
#define __MAP_H_

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/* 
 * Mow-Song, Ng 2/9/2002
 * msng@mmu.edu.my
 * http://www.pesona.mmu.edu.my/~msng
 *
 * I do not claim copyright to the code, but if you use them or modify them,
 * please drop me a mail.
 *
 */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
/* A structure to keep the symbol assigned to a node in the wavelet tree.
 * This is useful for storing quantization index or significant link symbol
 */
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <assert.h>

typedef struct MapStruct{
	int hsize, vsize;
	int nsteps;
	int nSubbands;
	int *subbandSize;
	int *subbandHSize;
	int *subbandVSize;
	int *symbol;
	int **subbandPtr;
} MAP; 

MAP *MapAlloc(int hsize, int vsize, int nsteps);
int MapGetNodeSymbol(MAP *map, int scale, int orientation, int x, int y);
void MapSetNodeSymbol(MAP *map, int scale, int orientation, int x, int y, int symbol);
void MapDealloc(MAP *map);
void MapError(char *fmt, ...);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -