map.h

来自「该程序把数字图像处理与小波变换结合起来」· C头文件 代码 · 共 49 行

H
49
字号
#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 + =
减小字号Ctrl + -
显示快捷键?