/* ======================================================================== */
/* TEXAS INSTRUMENTS, INC. */
/* */
/* IMGLIB DSP Image/Video Processing Library */
/* */
/* Release: Version 1.03 */
/* CVS Revision: 1.8 Sun Sep 29 03:26:45 2002 (UTC) */
/* Snapshot date: 28-Oct-2002 */
/* */
/* This library contains proprietary intellectual property of Texas */
/* Instruments, Inc. The library and its source code are protected by */
/* various copyrights, and portions may also be protected by patents or */
/* other legal protections. */
/* */
/* This software is licensed for use with Texas Instruments TMS320 */
/* family DSPs. This license was provided to you prior to installing */
/* the software. You may review this license by consulting the file */
/* TI_license.PDF which accompanies the files in this library. */
/* ------------------------------------------------------------------------ */
/* Copyright (C) 2002 Texas Instruments, Incorporated. */
/* All Rights Reserved. */
/* ======================================================================== */
/* ======================================================================== */
/* Assembler compatibility shim for assembling 4.30 and later code on */
/* tools prior to 4.30. */
/* ======================================================================== */
/* ======================================================================== */
/* End of assembler compatibility shim. */
/* ======================================================================== */
/* ======================================================================== */
/* TEXAS INSTRUMENTS, INC. */
/* */
/* NAME */
/* IMG_thr_le2min */
/* */
/* */
/* REVISION DATE */
/* 13-Mar-2002 */
/* */
/* USAGE */
/* This routine has the following C prototype: */
/* */
/* void IMG_thr_le2min */
/* ( */
/* const unsigned char *in_data, // Input image data // */
/* unsigned char *restrict out_data, // Output image data // */
/* short cols, short rows, // Image dimensions // */
/* unsigned char threshold // Threshold value // */
/* ) */
/* */
/* This routine performs a thresholding operation on an input */
/* image in in_data[] whose dimensions are given in the arguments */
/* 'cols' and 'rows'. The thresholded pixels are written to the */
/* output image pointed to by out_data[]. The input and output */
/* are exactly the same dimensions. */
/* */
/* DESCRIPTION */
/* Pixels that are above the threshold value are written to the */
/* output unmodified. Pixels that are less than or equal to the */
/* threshold are set to 0 in the output image. */
/* */
/* The exact thresholding function performed is described by */
/* the following transfer function diagram: */
/* */
/* */
/* 255_| */
/* | / */
/* | / */
/* O | / */
/* U | / */
/* T th _|. . . . . / */
/* P | | */
/* U | | */
/* T | | */
/* | | */
/* 0_|_________|__________ */
/* | | | */
/* 0 th 255 */
/* */
/* INPUT */
/* */
/* Please see the IMGLIB functions IMG_thr_gt2thr, IMG_thr_le2thr, */
/* and IMG_thr_gt2max for other thresholding functions. */
/* */
/* ASSUMPTIONS */
/* The input and output buffers do not alias. */
/* */
/* The input and output buffers must be double-word aligned. */
/* */
/* The total number of pixels rows*cols must be at least */
/* 16 and a multiple of 16. */
/* */
/* TECHNIQUES */
/* The loop is unrolled 16x. Packed-data processing techniques */
/* allow us to process all 16 pixels in parallel. */
/* */
/* Two LDDW instructions load in 16 pixels, designated p0 thru p9 */
/* pA thru pF. These pixels are packed in the four registers pFEDC, */
/* pBA98, p7654, and p3210 as follows: */
/* */
/
评论0