Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update info.md #538

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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