Skip to content

Commit

Permalink
docs(tt_um_gray_sobel): update info.md (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
DianaNatali authored Oct 18, 2024
1 parent e8e520d commit a6dd61b
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions projects/tt_um_gray_sobel/docs/info.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

<p align="center">
<img src=./arch.png alt="Descripción" width="410" height="270">
</p>

![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]``` &rarr; SPI Clock
* ```ui_in[1]``` &rarr; Chip Select
* ```ui_in[2]``` &rarr; 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 &rarr; Returns the input pixel unprocessed.
2. Grayscale &rarr; Returns the pixel converted to grayscale, so it is recommended that the input pixel be RGB.
3. Sobel &rarr; Returns the edge detection corresponding to the input pixel, so it is recommended that the input pixel be grayscale.
4. Grayscale + Sobel &rarr; 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$ &rarr; Grayscale + Sobel
* ```ui_in[4:3]``` = $01$ &rarr; Sobel
* ```ui_in[4:3]``` = $10$ &rarr; Grayscale
* ```ui_in[4:3]``` = $11$ &rarr; 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.

Expand Down

0 comments on commit a6dd61b

Please sign in to comment.