Project Name: open.dpj Project Type: ADSP-BF533 [X] ADSP-BF537 [ ] ADSP-BF561 [ ] Hardware Used: ADSP-BF533 EZ-Kit VisualDSP++ Emulator System Services Components Used: None OVERVIEW ======== The open function performs open operation on the input binary image. This is performed by doing an erosion function, followed by a dilation function. Temporary results after the erosion operation are stored on the stack, and later used as input for the dilation operation. 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 are used for both erosion and dilation operation. The structured elements are stored as shown below. | h00 h01 h02 | | h10 h11 h12 | | h20 h21 h22 | Prototype: void open(unsigned char* in, int row, int col, short * SE, unsigned char *out ); Arguments: in - pointer to the input image. row - number of rows of input image. col - number of columns of input image. SE - pointer to 3x3 structured element. out - pointer the output buffer. Registers used : R0-R7, P0-P5. RUNNING THE APPLICATION (on the ADSP-BF533 EZ-KIT Lite) ======================================================= 1) Load project "open.dpj". 2) Select "Project->Rebuild Project" 3) Select "Debug->Run". 4) Observe output on VisualDSP++ console window. Files in This Application ========================== This example consists of the following files: "./open.ldf" - linker description file "./open.dpj" - project file "../../src/t_open.c" - source file "../../src/open.asm" - source file "../../src/dilation.asm" - source file "../../src/erosion.asm" - source file "../../include/open.h" - include file "../../../../BFinUtils/ADSP-BF533/SDK-cycle_count.asm" - source file "../../../../Include/SDK-cycle_count.h" - include file