From a6dd61b632254441d42150831a4470338bc676f8 Mon Sep 17 00:00:00 2001 From: DianaNatali <51293019+DianaNatali@users.noreply.github.com> Date: Fri, 18 Oct 2024 08:17:53 -0500 Subject: [PATCH] docs(tt_um_gray_sobel): update info.md (#538) --- projects/tt_um_gray_sobel/docs/info.md | 27 ++++++++++++-------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/projects/tt_um_gray_sobel/docs/info.md b/projects/tt_um_gray_sobel/docs/info.md index 07278998..14e57f24 100644 --- a/projects/tt_um_gray_sobel/docs/info.md +++ b/projects/tt_um_gray_sobel/docs/info.md @@ -13,32 +13,29 @@ This project performs grayscale conversion and Sobel filtering with the aim of d Below is a block diagram of the implementation: -

- DescripciĆ³n -

- +![arc](arch.png) ## How to test It is necessary for the pixels to be sent via an SPI protocol; for this purpose, the input ```ui_in[2:0]``` is designated as follows: -* ```ui_in[0]``` ----> SPI Clock -* ```ui_in[1]``` ----> Chip Select -* ```ui_in[2]``` ----> Input Pixel +* ```ui_in[0]``` → SPI Clock +* ```ui_in[1]``` → Chip Select +* ```ui_in[2]``` → Input Pixel As shown in the previous image, there are some processing options: -1. Bypass ----> Returns the input pixel unprocessed. -2. Grayscale ----> Returns the pixel converted to grayscale, so it is recommended that the input pixel be RGB. -3. Sobel ----> Returns the edge detection corresponding to the input pixel, so it is recommended that the input pixel be grayscale. -4. Grayscale + Sobel ----> Returns the edge detection of the input pixel by performing both grayscale processing and the Sobel filter, so it is recommended that the input pixel be RGB. +1. Bypass → Returns the input pixel unprocessed. +2. Grayscale → Returns the pixel converted to grayscale, so it is recommended that the input pixel be RGB. +3. Sobel → Returns the edge detection corresponding to the input pixel, so it is recommended that the input pixel be grayscale. +4. Grayscale + Sobel → Returns the edge detection of the input pixel by performing both grayscale processing and the Sobel filter, so it is recommended that the input pixel be RGB. To select one of the processing options, the input ```ui_in[4:3]``` is designated as follows: -* ```ui_in[4:3]``` = $00$ ----> Grayscale + Sobel -* ```ui_in[4:3]``` = $01$ ----> Sobel -* ```ui_in[4:3]``` = $10$ ----> Grayscale -* ```ui_in[4:3]``` = $11$ ----> Bypass +* ```ui_in[4:3]``` = $00$ → Grayscale + Sobel +* ```ui_in[4:3]``` = $01$ → Sobel +* ```ui_in[4:3]``` = $10$ → Grayscale +* ```ui_in[4:3]``` = $11$ → Bypass To perform the Sobel filter processing, it must be enabled according to the selected processing. This can be enabled or disabled as needed through the input ```ui_in[5]```, where $1$ enables and $0$ disables.