Project Name: close.dpj Project Group Name: close.dpg Project Type: ADSP-BF533 [ ] ADSP-BF537 [ ] ADSP-BF561 [X] Hardware Used: ADSP-BF561 EZ-Kit VisualDSP++ Emulator System Services Components Used: None OVERVIEW ======== The close function performs the close operation on an input binary image. This is done by calling the dilation function, followed by the erosion function. The results of the on the stack, and used as input to the erosion function. The structured elements are stored as shown below. | h00 h01 h02 | | h10 h11 h12 | | h20 h21 h22 | For this function to work properly, the number of columns in the input image must be an even number, aligned to a word or half word boundary. The input image must not be stored in the same memory bank with the structured elements. The same structured elements will be used for both the dilation function, and the erosion function. Prototype: void _close (unsigned char* in, int row, int col, short * SE, unsigned char *out ); Arguments: in - Pointer to the input image. row - Number of rows in input image. col - Number of columns in input image. SE - Pointer to 3x3 structured element. out - Pointer to the output buffer. Registers used: R0-R7, P0-P5. RUNNING THE APPLICATION (on the ADSP-BF561 EZ-KIT Lite) =========================================================== 1) Load Project Group "close.dpg". 2) Select "Project->Rebuild Project" 3) Click OK in the "Load Multiprocessor Confirmation" window to load p0.dxe and p1.dxe. 4) Select "Debug->Multiprocessor Run". 5) Observe output on VisualDSP++ console window. Files in This Application ========================== This example consists of the following files: "./close.ldf" - linker description file "./close.dpj" - project file "./close.dpg" - project group file "corea/corea.dpj" - Core A project file "../../src/t_close.c" - Core A source file "../../src/close.asm" - Core A source file "../../src/dilation.asm" - Core A source file "../../src/erosion.asm" - Core A source file "../../../../BFinUtils/ADSP-BF561/SDK-cycle_count.asm" - Core A source file "../../include/close.h" - Core A include file "../../../../Include/SDK-cycle_count.h" - Core A include file "coreb/coreb.dpj" - Core B project file "../../../../BFinUtils/ADSP-BF561/SDK-coreb_idle.c - Core B source file "sml2/sml2.dpj" - Shared Memory L2 project file "../../../../BFinUtils/ADSP-BF561/SDK-dummy.c - Shared Memory L2 source file "sml3/sml3.dpj" - Shared Memory L3 project file "../../../../BFinUtils/ADSP-BF561/SDK-dummy.c - Shared Memory L3 source file