Skip to content

Udit86/Image-processing-using-Verilog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image-processing-using-Verilog

General image operations on a Grayscale Image using Verilog

The design module is able to perform following operations on a grayscale image :-

  1. Increase Brightness
  2. Decrease Brightness
  3. Image Thresholding
  4. Image inversion

The Working process of the code is as follows:-

  • The "txt_to_jpg.py" file is used to create a .txt file which contains pixel values of an image in 8-bit binary format.
  • The obtained text file is then passed into the simulation source file of verilog i.e. "Test_bench.v".
  • The Design Module is in "Design.v".
  • The simulation source returns a text file with the processed image in similar format as the input file.
  • Then "jpg_to_txt.py" file is used to create .jpg file from the text file obtained after simulation.

The amount of brightness to be increased or decreased and the threshold value of pixel can be changed in the "Test_bench.v".
The operation to be carried can also be changed by changing the variable "select" in "Test_bench.v" acc. to the following description :-
2’b00 Increase Brightness
2’b01 Decrease Brightness
2’b10 Image Thresholding
2’b11 Image Inversion

The example Folder contains a test image and the images obtained by carrying out all the operations in "Test_bench.v" one by one.

About

General image operations on a Grayscale Image using Verilog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published