cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor
Visitor
1,092 Views
Registered: ‎04-26-2018

Image Processing in Xilinx System Generator

Jump to solution

I'm new to System Generator and i am working on a project  detection and removal of salt and pepper noise using median filter. in this i am implementing median filter, so for this i am making a 3*3 processing window to process the image and generating 9 pixels at a time by scanning the entire image to fed them in parallel manner . for this i am using Matlab function block and in this i am facing a problem that my input is an image and this block needs a constant input .

 

 Attached is the snippet of my design. Please tell me how to fix the above mentioned problems. 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Adventurer
Adventurer
1,315 Views
Registered: ‎04-24-2012

Re: Image Processing in Xilinx System Generator

Jump to solution

Hi,

Some comments about your post:

1) If you request help about your design, you should post more than that picture. Where is the log?, what model are you using?, I don't see any Sysgen token there, just Matlab blocks. Did you check 'Frame converion' and 'Buffer' parameters?.

2) Your question is very general, you will have a general answer. Check the documentation of Simulink blocks first, then you can check Sysgen documentation and see how you can see the signal magnitudes from Simulink window and start debugging from that.

 

Last, I have one model which reads an input image from 'From Video' block, and do some processing with it using Sysgen Blocks. You can use it as starting point:

RGB2Gray conversion:

https://github.com/Diego-HR/Sysgen-DSP-for-Atlys-FPGA/blob/master/examples/sobel_img/rgb2gray_fpga.slx

Sobel filter:

https://github.com/Diego-HR/Sysgen-DSP-for-Atlys-FPGA/blob/master/examples/sobel_img/sobel_fpga.slx

/* Don't forget to give kudos and/or accept as a solution */

View solution in original post

0 Kudos
2 Replies
Highlighted
Adventurer
Adventurer
1,316 Views
Registered: ‎04-24-2012

Re: Image Processing in Xilinx System Generator

Jump to solution

Hi,

Some comments about your post:

1) If you request help about your design, you should post more than that picture. Where is the log?, what model are you using?, I don't see any Sysgen token there, just Matlab blocks. Did you check 'Frame converion' and 'Buffer' parameters?.

2) Your question is very general, you will have a general answer. Check the documentation of Simulink blocks first, then you can check Sysgen documentation and see how you can see the signal magnitudes from Simulink window and start debugging from that.

 

Last, I have one model which reads an input image from 'From Video' block, and do some processing with it using Sysgen Blocks. You can use it as starting point:

RGB2Gray conversion:

https://github.com/Diego-HR/Sysgen-DSP-for-Atlys-FPGA/blob/master/examples/sobel_img/rgb2gray_fpga.slx

Sobel filter:

https://github.com/Diego-HR/Sysgen-DSP-for-Atlys-FPGA/blob/master/examples/sobel_img/sobel_fpga.slx

/* Don't forget to give kudos and/or accept as a solution */

View solution in original post

0 Kudos
Highlighted
Visitor
Visitor
1,053 Views
Registered: ‎04-26-2018

Re: Image Processing in Xilinx System Generator

Jump to solution

Actually i am implementing median filter so i was facing the problem in window extraction as i already mentioned, in this i am providing image as an input but this block is not taking it as an input since it requires only a constant value .And yes i have checked frame conversion and buffer parameters.  

here is my design 

 

           Capture1.PNG

 

0 Kudos