📄 boundary.c
字号:
#include <stdio.h>
#include <stdlib.h>
#include "imagelib.h"
#define WIDTH 128
#define HEIGHT 8
#pragma DATA_SECTION(temp_wksp, ".wksp_array");
short temp_wksp[WIDTH];
void main( )
{
int i;
int Width;
short *input;
int * output, *XY;
int rows, cols;
Width = 512;
input = (short *)malloc((size_t)(Width*sizeof(short)));
output= (int *)malloc((size_t)(Width*sizeof(int)));
XY = (int *)malloc((size_t)(2*Width*sizeof(int)));
for( i = 0; i < Width; i++ )
{input[i] = 0; output[i]=-1;}
rows = 32; cols = 16;
input[0] = 15; input[1] = 5;
input[2] = 10; input[3] = 99;
IMG_boundary( input, rows, cols, XY, output );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -