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

📄 cfunzoom.c

📁 image processing including fourier,wavelet,segmentation etc.
💻 C
字号:
/*--------------------------- Commande MegaWave -----------------------------*//* mwcommand   name = {cfunzoom};   version = {"1.0"};   author = {"Lionel Moisan"};   function = {"Color Image reduction"};   usage = {  'z':[z=2.0]->z     "unzoom factor (default 2.0)",'x':tx->tx         "to first translate (x) the original image",'y':ty->ty         "to first transalte (y) the original image",'o':[o=0]->o       "spline space order, 0..5, default 0",in->in             "input Cfimage",out<-out           "output Cfimage"};*/#include <stdio.h>#include "mw.h"extern Fimage funzoom();Cfimage cfunzoom(in,out,z,o,tx,ty)     Cfimage in,out;     float *z,*tx,*ty;     int *o;{  Fimage aux_in,aux_out;  aux_in = mw_new_fimage();   aux_in->nrow = in->nrow;   aux_in->ncol = in->ncol;  /* red component */  aux_in->gray = in->red;  aux_out = funzoom(aux_in,NULL,z,o,tx,ty);  out = mw_change_cfimage(out,aux_out->nrow,aux_out->ncol);  memcpy(out->red,aux_out->gray,out->nrow*out->ncol*sizeof(float));  /* green component */  aux_in->gray = in->green;  funzoom(aux_in,aux_out,z,o,tx,ty);  memcpy(out->green,aux_out->gray,out->nrow*out->ncol*sizeof(float));  /* blue component */  aux_in->gray = in->blue;  funzoom(aux_in,aux_out,z,o,tx,ty);  memcpy(out->blue,aux_out->gray,out->nrow*out->ncol*sizeof(float));  mw_delete_fimage(aux_out);  free(aux_in);   return(out);}

⌨️ 快捷键说明

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