Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Rapid PHP 2018 15.5
IBDAC 6.4
Online Course Booking Script 1.3.3
Database Workbench Pro 5.6.4
Job Portal Script 1.3.2
The C# PDF Library 5.2
PostgreSQL Data Access Components 6.0
Virtual Data Access Components 11.0
HTMLPad 2018 15.5
WeBuilder 2018 15.5
SentiMask SDK Trial 2.0.0
Track Order For Magento 2 1.0.0
Calendar 365 For Dynamics CRM 4.0
Scimbo 1.2
Odoo Furnito Theme 1.0
Top Code
PostgreSQL Data Access Components 4.4
Database Workbench Pro 5.6.4
Availability Booking Calendar PHP 1.0
Online Course Booking Script 3.04
ATN Site Builder 3.0
ATN Resume Finder 2.0
PHP Review Script 1.0
IBDAC 6.4
ICPennyBid Penny Auction Script 4.0
Invoice Manager by PHPJabbers 3.0
The C# PDF Library 1.0
Rapid PHP 2018 15.5
HTMLPad 2018 15.5
Classified Ad Lister 1.0
Azizi search engine script PHP 4.1.10
Top Rated
VisualNEO Web 2018.12.15
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
Fast edges of a color image (actual color, not converting to grayscale) 1.0
File ID: 80785






Fast edges of a color image (actual color, not converting to grayscale) 1.0
Download Fast edges of a color image (actual color, not converting to grayscale) 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 104
User Rating:1 Stars  (1 rating)
Submit Rating:
Fast edges of a color image (actual color, not converting to grayscale) 1.0 Description
Description: Extracts the edges of a color image without converting it to grayscale.

Changes in color are detected even when the grayscale color of two pixels are the same. The edge strength is typically greater or equal to the magnitude obtained by simply filtering a grayscale image.

Optionally, the edge orientation can also be returned.

Example:
The image generated by the example code (presented here as the screenshot) shows two edge types:
White - edges found by both methods.
Red - edges found only by the color method.

This clearly shows that a significant amount of information is lost by the standard method, but it is recovered with the gradient method.

figure, im = imread('peppers.png'); imshow(im)

%get color edges and normalize magnitude
C = coloredges(im);
C = C / max(C(:));

%get grayscale edges and normalize magnitude
G_image = single(rgb2gray(im)) / 255;
G = sqrt(imfilter(G_image, fspecial('sobel')').^2 + imfilter(G_image, fspecial('sobel')).^2);
G = G / max(G(:));

%show comparison
figure, imshow(uint8(255 * cat(3, C, G, G)))

Algorithm:
The RGB color of each pixel is treated as a 3D vector, and the strength of the edge is the magnitude of the maximum gradient. This also works if the image is in any other (3-dimensional) color space. Direct formulas for the jacobian eigenvalues were used, so this function is vectorized and yields good results without sacrificing performance.

License: Shareware

Related: fspecialsobel, sqrtimfilterg image, singlergb grayim, imfilterg image, Comparison, Algorithm, imshowuint, Image, coloredgesim, Gradient

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 104



More Similar Code

It is very fast and simple file to display histogram of a 3D image
imhist3(I,n) n is the number of bins in the histogram
imhist3(X,map) X isindexed 3D image and map is colormap map



Calculates multifractal spectrum of a binary image based on the ideas in the paper by Posadas et al., Soil Sci. Soc. Am. J. 67:1361-1369, 2003.



This program takes a color or monochrome image and lets the user threshold the monochrome image, or a single color band of a color image, via sliders to set the maximum and minimum thresholds. The pixels in the thresholded range are shown in the...



Position determines the relative position of a planar point C with respect to
a planar segment joining A and B. This is not intended for 3D points.
Pos=0 =>the point C is collinear with A and B
Pos=1=>the point C is above the...



This program allows users to specify the number of zero layers to wrap around a 3D image matrix.
Zero padding allows image processing to occur at the edges of the 3D image. Many image processing filters take into account the values stored in...



IMSHADE will plot a matrix representing topography as a 3-component color image, with intensity proportional to the magnitude of the topographic slope of each pixel. Optionally, it can take an argument for lighting angle to use the directional...



Crop upper/lower half-, and whole-circle sections in the center of a colour image. Optional move of cropped section inside the image and away from center.



in general the spectum of noise and image are not in static so by changing the powers of noise and image we can observe the restoration of image in GUI



The gliding box algorithm proposed by Tolle et al., Physica D, 237, 306-315, 2008 is used to calculate the lacunarity of a binary image.



Computes the min and max values within the input array, convert to 256 values, and apply a colormap to produce a color image (RGB).

It is possible to specifies the range of values to consider, as well as the background color (used for...

User Review for Fast edges of a color image (actual color, not converting to grayscale)
- required fields
     

Please enter text on the image