Skip to content

added AGC demo design#33

Open
elizabethjt wants to merge 14 commits intomainfrom
askfpga_2775_rebased
Open

added AGC demo design#33
elizabethjt wants to merge 14 commits intomainfrom
askfpga_2775_rebased

Conversation

@elizabethjt
Copy link
Copy Markdown
Collaborator

No description provided.

ManuelSaldana and others added 14 commits May 1, 2026 15:11
- Default value (GBRG) for bayer format argument was removed from DeBayer function. Now users need to explicitly pass the required format. This will hopefully prevent unexpected mismatches.
- Added bayer format argument to RGBBayer function.
- Added new function BGR2Bayer to make it easier to just process images loaded with OpenCV without having to convert the color.
- Updated Bayer-DeBayer example using the above changes.
- Updated golden images for Bayer and Debayer test.

- Added two new variations to TransformPixel function. One where the  "ij" pixel coordinates is passed to the functor argument, and the other where an "enable" argument is passed to the functor argument.   This will provide more info to process pixels.

- Added new method ConvertTo() the Img class. This is similar to OpenCV's function to scale and add factors to pixels of an image.

- Add .gitignore
- Also added the example designs for testing each function.
- For the GammaCorrection function, a table generator has been added. This is a temporary solution until we can generate tables at compile time.
- Also updated the .gitignore file
The demo now has a PASS/FAIL check against a golden image. Even though the demo is meant to be used for video, a test with a single image can at least check if the verilog code would work for one frame.

The check also has a flag (SMALL) to select a small image for quick cosim testing. If this flag is not set (Default) a 4K image is used.
Makefile has been updated and run_libero.ps1 has been added
- Updated readme
- Updated .hex file with additional printout
- Modified gdb.txt to load the .elf, start the execution and quit.
- SW makefile now always updates the .hex file that Libero uses to
  compile the bitstream
The update includes the commands to:

1. Compile the SmartHLS module and generate Verilog and the C++ API
2. Compile the software for the Soft-MiV RV32 CPU
3. Compile the Libero project
- Also removed extra ip_core_versions.tcl file. Only one is used now, under rtl directory.
… version from 2.1.110 to 2.1.113 to resolve the libero generation failure.
- updated core versions to build with libero 2025.2
Copy link
Copy Markdown
Collaborator

@ManuelSaldana ManuelSaldana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current gamma correction and image enhance from main branch are more up to date than the versions coming from the PR. The current versions should work for the AGC demo. Please double check that's the case.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This generator may not be necessary if the AGC demo works with the gamma correction version from main branch.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The IP core version upgrade also affects the PFVideo_Kit demo design, not just the AGC demo. Please confirm that the former also compiles and works on-board.

@jennifermah76
Copy link
Copy Markdown
Collaborator

Some minor nitpicks (none of which would really stop this PR from going in.)

Comment thread vision/demo_designs/pfvk_agc_color_brightness/hls/config.tcl
Comment thread vision/demo_designs/pfvk_agc_color_brightness/hls/Makefile
Comment thread vision/demo_designs/pfvk_agc_color_brightness/hls/Makefile.user
Comment thread vision/demo_designs/pfvk_agc_color_brightness/hls/pf_demo.cpp
Comment thread vision/examples/gamma_correction/Makefile.user
Comment thread vision/examples/gamma_correction/Makefile.user
Comment thread vision/include/imgproc/image_enhance.hpp
Comment thread vision/include/imgproc/image_enhance.hpp
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we'd also have a Linux run_libero script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants