Demonstrates image processing.
------------------------------------------------------------------------ See also CannyEnhancer, GaussianDerivative, ColorMapGrayScale, Imager, ReadImage ------------------------------------------------------------------------
Contents
------------------------------------------------------------------------- Copyright (c) 2009 Princeton Satellite Systems, Inc. All rights reserved. Since version 9. -------------------------------------------------------------------------
Load the image
%--------------- q = ReadImage('MoonAndStars.jpg');
Show the derivatives
%--------------------- [dX, dY] = GaussianDerivative( q, 0.05, 0.01 ); Imager(q,[],dX,1); set(gcf,'name','|X Derivative|'); ColorMapGrayScale; Imager(q,[],dY,1); set(gcf,'name','|Y Derivative|'); ColorMapGrayScale;


Compute edge strength and direction. This takes the image derivative internally
%--------------------------------------------------------------------- sigma = 0.05; eps = 0.01; thresh = 0.01; [eS, eO] = CannyEnhancer( q, sigma, eps, thresh ); Imager(q, [], eS, 1); set(gcf,'name','Canny Enhancer : Strength'); %-------------------------------------- % $Id: f3114168be82f077cacffb4efbc52159c11f7a5a $
