Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > edge detection using sobel

Reply
Thread Tools

edge detection using sobel

 
 
kumar9422 kumar9422 is offline
Junior Member
Join Date: May 2010
Posts: 1
 
      05-29-2010
i m doing project in VHDL for real time image processing *edge detection* using sobel operator
in this i have to write code inside the process can u please help me..
i used to write sobel gradients and i have taken out pdata5 as output..
as i have to take out p5 in mask

and
is there any solution using array type



library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

entity edge_sobel is
generic ( PWIDTH : integer := ;
port (
pclk_i : in std_logic;
fsync_i : in std_logic;
rsync_i : in std_logic;
pData1 : in STD_LOGIC_VECTOR(pwidth-1 downto 0);
pData2 : in STD_LOGIC_VECTOR(pwidth-1 downto 0);
pData3 : in STD_LOGIC_VECTOR(pwidth-1 downto 0);
pData4 : in STD_LOGIC_VECTOR(pwidth-1 downto 0);
pData5 : in STD_LOGIC_VECTOR(pwidth-1 downto 0);
pData6 : in STD_LOGIC_VECTOR(pwidth-1 downto 0);
pData7 : in STD_LOGIC_VECTOR(pwidth-1 downto 0);
pData8 : in STD_LOGIC_VECTOR(pwidth-1 downto 0);
pData9 : in STD_LOGIC_VECTOR(pwidth-1 downto 0);

fsync_o : out std_logic;
rsync_o : out std_logic;
pdata_o : out std_logic_vector(pwidth-1 downto 0)
);

end entity edge_sobel;

architecture Behavioral of edge_sobel is

begin
dummy_edge_sobel: process (pclk_i)
begin
if (pclk_i'event and pclk_i = '1') then
-- You are to change the part of the code to make it fulfill
-- edge detection based on the Sobel operator.

rsync_o <= rsync_i;
fsync_o <= fsync_i;
pdata_o <= pData5;

end if; -- pclk_i
end process dummy_edge_sobel;


end Behavioral;


.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sobel Edge detectors deepsri.88 Java 0 11-07-2010 07:29 AM
3x3 sobel edge detection dashdingo VHDL 3 09-26-2009 05:57 PM
using both rising edge and falling edge of signal denish VHDL 5 11-17-2008 07:12 PM
Boost.graph - changing edge end-points or copying an edge Ferdi Smit C++ 0 10-10-2005 04:30 PM
edge detection using subprograms M.Randelzhofer VHDL 6 02-09-2005 01:23 AM



Advertisments