threshold.c

来自「TMS320VC55XX 图像 处理程序」· C语言 代码 · 共 20 行

C
20
字号
#include <stdio.h>
#include <imagelib.h>   
#include "imagesample.h"

#define WIDTH  128
#define HEIGHT 128
#pragma DATA_SECTION(temp_wksp, ".wksp_array");
short temp_wksp[WIDTH];  


void main( )
{        
	short 	rows, cols;		
	short		threshold_value;
	threshold_value = 230;
	cols = WIDTH;
	rows = HEIGHT;
    IMG_threshold(&goldhill[0][0], &goldhill[0][0], cols, rows, threshold_value );
}                            

⌨️ 快捷键说明

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