www.pudn.com > src.rar   To Read all the content


[file head]:
/*********************************************************
* *
* Evenness *
* *
*********************************************************/

#include <tina/all_tina.h>
#include "bmp.h"
#include "gnuplot_i.h"
//#include "func.h"

/*_____ EXTERN _____*/
extern double getZhiLuanDu_1(int **r, int **c, Imrect *srcIm, Imrect *destIm, int height, int width);
extern double getDSF(int **r, int **c, int height, int width);
extern double getGSF(Imrect *srcIm, Imrect *destIm, int height, int width);
extern double getDDR(Imrect *srcIm, Imrect *destIm, int height, int width);
/*-----------------------------------------------------------*/
static int iminarg1,iminarg2;
#define IMAX(a,b) (iminarg1 = (a),iminarg2 = (b),(iminarg1) > (iminarg2) ? (iminarg1) : (iminarg2))

static int scram_method = 0;
static int n_scram = 10;
static int MASK_wid
... ...

[file tail]:
... ...
INA_IMAGE_DEFAULT",
"/home/wzz/newimscramdegree/result/newscramdegree/Lena.bmp");

tool = (void *)tw_tool("New image scrambling degree", x, y);
/*---------------------------*/
tw_label("Display");
tw_button("New Tvtool", tool_proc, NULL);
tw_label(" File i/o");
tw_button("Mono", mono_tool_proc, NULL);
/*---------------------------*/
tw_newrow();
pdir = (void *) tw_sglobal("Directory:", directory_name, 32);
tw_button("scan", scan_proc, NULL);
tw_newrow();
pfile = (void*) tw_sglobal("File:", file_name, 32);
/*---------------------------*/
tw_newrow();
tw_choice("Scrambling Method:", scram_choice_proc, 0,\
"Fibonacci", "Arnold", "QATLIG", "Hilbert", "Zigzag", "Convey", "GrayCode", "Baker", "Logistic", "Random",NULL);
tw_newrow();
tw_iglobal("Transform times=", &amt;n_scram, 10);
tw_iglobal("Mask = ", &amt;MASK_width, 5);
tw_button("get Srambling Degree", scram_proc, NULL);
tw_newrow();


tw_newrow();
tw_end_tool();
}