搜索资源列表
MyPaint1.0
- 设计思路: 对Windows XP自带的画笔程序进行分析,一般User画图过程: 首先鼠标选择绘图工具,然后选择颜色,接着按User需要作图。User对产出的图像进行操作。 对图形元素抽象出公共属性,设计我的画板的作图过程: 选择工具 、画预览效果、User满意并确定、绘制效果。 下面是程序用到主要变量: 当前绘图点粒度:int iGranularity 当前使用颜色:COLORREF curColor 当前绘图状态:int iPaintStatus
jisuanjituxing
- 根据多边形区域的填充原理可以推广到圆域的填充,由于圆的特殊属性,即可根据任何欲填充的像素点与圆心的距离是否大于或小于半径来判断是否在圆内或圆外,具体实现程序如下; 利用中点画圆算法实现边界程序: void CArea_FillData::MidpointCircle(int xc, int yc, int r, int color) {//画八分之一的圆 int x,y,d x=0 y=r d=1-r WholeCircle(xc,yc,x,y,color
lexica
- 词法分析器!内有文档!本程序识别的关键字为int real if then else while,仅当单独出现以上标识符时识别为关键字,对于inta,ifb等识别为标识符。 操作符分隔符! -lexical analyzer! Have documentation! The procedures for the identification of the keyword int el real if then se while, and only if there alone at the
VIEW3DS11
- 此程序将3DS模型转换为gl模型和一个头文件,使得读3D模型变得非常简单,读者只需调用头文件中的Init函数,int model=GL3DS_initialize_xxx()t() 然后用glCallList(model) 即可绘制。-this procedure will be converted to 3DS model gl model and a header files, Reading makes 3 D model is very simple, readers can call
EasyBMPtoAVI_0.54_console-source
- EasyBMPtoAVI is a simple, easy-to-use, cross-platform utility for creating an avi movie file from a series of windows bitmap (BMP) images. Some features: 1) Support for reading all bit-depths supported by EasyBMP. At the present time,
3DModelEditor
- 三维图形编辑器,可完成对三维图形的导入导出,以及很多对图形的基本操作 AppWizard has created this 3DEditor application for you. This application not only demonstrates the basics of using the Microsoft Foundation classes but is also a starting point for writing your application.-3
1821
- 一个实时曲线类 接口说明: // 设置网格间距 void SetGridResolutionX(int nGridReluX) // 设置网格间距 void SetGridResolutionY(int nGridReluY) // 设置网格滚动速度,正值为从左向右滚动,0不动 void SetGridScrollSpeedX(int nSpeedX) // 正值为从上到下滚动,0不动 void SetGridScrollS
Cannyandlog
- canny 算法 void CreatGauss(double sigma, double **pdKernel, int *pnWidowSize) void GaussianSmooth(SIZE sz, LPBYTE pGray, LPBYTE pResult, double sigma) void Grad(SIZE sz, LPBYTE pGray, int *pGradX, int *pGradY, int *pMag) void NonmaxSuppress(
2005628115114959_600it
- char *className = \"OPENGL\" char *windowName = \"OPENGL彩色圆环编程示例\" int winX = 0, winY = 0 int winWidth =300, winHeight = 300 -char * className = "OpenGL" char * windowNa me = "Color Ring OpenGL Programming Example" int wi
rawsource
- RawSource (string filename, int width, int height, string pixel_type, int offset) # for loading raw video data # # filename: the raw file e.g. a YUV-file # width, height: you must specify the image dimensions. width is max 2880 # pixel_type
xihua
- 程序只支持BMP256色灰度图像 方法主要是4种细化算法还有找兴趣点 在int _tmain()中注释“应用部分”换不同的函数方法就可以使用。
DCT_transform
- This file include the DCT and IDCT transform of an image. void show_DCT( void ) void DCT_8x8( float* data ) void IDCT_8x8( float* data ) void BDCT( float* input,int rows,int cols ) void BIDCT( float* input,int rows,int cols ) void get_8x8
image_process
- This file include some image process program: void ImResize(IMAGEDATA *pRtImg, IMAGEDATA *pSrImg, int nFixSize) bool CalMoments(float Moments[7], IMAGEDATA *pSrImg) void RGB2Gray(IMAGEDATA *pRtImg, IMAGEDATA *pSrImg) void Im2Bw(IMAGEDATA *pR
Hough
- Hough变换 BOOL Hough(HWND hWnd){ //定义一个自己的直线结构 typedef struct{ int topx //最高点的x坐标 int topy //最高点的y坐标 int botx //最低点的x坐标 int boty //最低点的y坐标 }MYLINE DWORD BufSize LPBITMAPINFOHEADER lpImgData LPSTR lpPtr HDC hDc
Cphoto
- int gdriver=DETECT, gmode, errorcode struct arccoordstype arcinfo int midx, midy int stangle=45,endangle=270 char sstr[80],estr[80]
OpenGLSolarSys
- Open GL Line int main() { int gdriver=DETECT, gmode initgraph(&gdriver, &gmode, \"c:\\\\tc\") lineBres(30,20,100,150) getch() closegraph() }
Explosion
- as3.0 模拟爆炸 package { import flash.display.BitmapData import flash.geom.ColorTransform public class Explosion { /* EXPLOSION PARAMETERS */ //-- START VALUES private const EXPLOSION_RADIUS: int = 24 priva
Floyd-Steinberg
- Floyd-Steinberg算法的源代码 用int类型的缓冲区存储新值是可行的
logistic
- 这个是一个基于logistic混沌系统单项散列函数,调用get_logisit(int* logisit, int length, int max_value, double XX)函数,返回一组logisitic随机数,随机数的最大值为max_value,初始值XX,随机数由初始值XX唯一确定。在数字水印技术等方面使用非常广泛,也许使用VC语言处理图像或是数字水印方面的用户会经常使用。 谢谢!
int
- 编写函数int index返回字符t在字条串s中出现的最左边的位置,如果在s中没有与t匹配的子串,不返回-1-function int index prepared to return to the characters not string' s note appeared in the leftmost position, If s and t is not matched substring, not to return-1