boundary.c
来自「TMS320VC55XX 图像 处理程序」· C语言 代码 · 共 34 行
C
34 行
#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 + =
减小字号Ctrl + -
显示快捷键?