| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> |
| |
| <!--======================================================================--> |
| <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> |
| <!--= Institute of Technology, Institut National de Recherche en =--> |
| <!--= Informatique et en Automatique, Keio University). All Rights =--> |
| <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
| <!--======================================================================--> |
| <!--======================================================================--> |
| <!-- --> |
| <!-- filters-convolve-BE-06.svg --> |
| <!-- renamed for 1.1 suite to filters-conv-01-f.svg --> |
| <!-- --> |
| <!-- Test which verifies the basic facilities of feConvolveMatrix. --> |
| <!-- --> |
| <!-- Author : Vincent Hardy 24-Apr-2000 --> |
| <!-- Revised for 1.1 : Mike Bultrowicz, 4 February 2002 --> |
| <!-- --> |
| <!-- History: --> |
| <!-- 24-Apr-2000, VH: Serial#1 created. --> |
| <!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . --> |
| <!-- 16-Aug-2000, LH="rename" ser#2. --> |
| <!-- 17-Aug-2000, JF: Fix validation error. edgemode->edgeMode. --> |
| <!-- 21-Aug-2000, VH: Added filterUnits and filter effect region to each --> |
| <!-- filter definition. ser#3 --> |
| <!-- --> |
| <!--======================================================================--> |
| <!--======================================================================--> |
| <!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> |
| <!--= log messages, and therefore is no longer in the preceding preamble.=--> |
| <!--======================================================================--> |
| <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="480" height="360" version="1.1" baseProfile="full"> |
| <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> |
| <!--nav data here--> |
| <OperatorScript version="$Revision: 1.5 $" testname="filters-conv-01-f.svg"> |
| <Paragraph> |
| Test which verifies the basic facilities of |
| feConvolveMatrix. |
| </Paragraph> |
| <Paragraph> |
| This test defines six filters that exercise traditional |
| convolutions: uniform blur, vertical and horizontal |
| blurs, edge detection, embossing and sharpening. Note |
| that the edge detection filter produces a fully |
| transparent image because the alpha channel is convolved |
| and produces 0 values. |
| </Paragraph> |
| </OperatorScript> |
| </SVGTestCase> |
| <title id="test-title">filters-conv-01-f</title> |
| <desc id="test-desc">Test which verifies the basic facilities of feConvolveMatrix.</desc> |
| <!--======================================================================--> |
| <!--Content of Test Case follows... =====================--> |
| <!--======================================================================--> |
| <g id="test-body-content"> |
| <!--Generated by the Java 2D API Graphics2D SVG Generator, Sun Microsystems Inc.--> |
| <g transform="translate(20, 40)"> |
| <defs id="defs1"> |
| <filter id="convolve1" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| <feConvolveMatrix order="3 3" kernelMatrix="0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111" edgeMode="none"/> |
| </filter> |
| <filter id="convolve2" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| <feConvolveMatrix order="3 3" kernelMatrix="-1 -1 -1 -1 8 -1 -1 -1 -1" edgeMode="duplicate"/> |
| </filter> |
| <filter id="convolve3" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| <feConvolveMatrix order="3 3" kernelMatrix="-1 -1 -1 -1 9 -1 -1 -1 -1" edgeMode="none"/> |
| </filter> |
| <filter id="convolve4" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| <feConvolveMatrix order="3 3" kernelMatrix="-2 0 0 0 1 0 0 0 2" edgeMode="none"/> |
| </filter> |
| <filter id="convolve5" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| <feConvolveMatrix order="3 1" kernelMatrix="0.3333 0.3333 0.3333" edgeMode="none"/> |
| </filter> |
| <filter id="convolve6" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| <feConvolveMatrix order="1 3" kernelMatrix="0.3333 0.3333 0.3333" edgeMode="none"/> |
| </filter> |
| </defs> |
| <g shape-rendering="geometricPrecision" text-rendering="geometricPrecision" > |
| <text x="10" y="20" stroke="none" opacity="1" filter="none" >Blur (3x3)</text> |
| <g opacity="1" filter="none" > |
| <image width="50" height="63" xlink:href="resources/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve1)" /> |
| </g> |
| <text x="10" y="20" transform="translate(150,0)" stroke="none" opacity="1" filter="none" >Edge Detection (3x3)</text> |
| <g transform="translate(150,0)" opacity="1" filter="none" > |
| <image width="50" height="63" xlink:href="resources/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve2)" /> |
| </g> |
| <text x="10" y="20" transform="translate(300,0)" stroke="none" opacity="1" filter="none" >Sharpening (3x3)</text> |
| <g transform="translate(300,0)" opacity="1" filter="none" > |
| <image width="50" height="63" xlink:href="resources/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve3)" /> |
| </g> |
| <text x="10" y="20" transform="translate(0,93)" stroke="none" opacity="1" filter="none" >Embossing (3x3)</text> |
| <g transform="translate(0,93)" opacity="1" filter="none" > |
| <image width="50" height="63" xlink:href="resources/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve4)" /> |
| </g> |
| <text x="10" y="20" transform="translate(150,93)" stroke="none" opacity="1" filter="none" >Horizontal blur (3x1)</text> |
| <g transform="translate(150,93)" opacity="1" filter="none" > |
| <image width="50" height="63" xlink:href="resources/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve5)" /> |
| </g> |
| <text x="10" y="20" transform="translate(300,93)" stroke="none" opacity="1" filter="none" >Vertical blur (1x3)</text> |
| <g transform="translate(300,93)" opacity="1" filter="none" > |
| <image width="50" height="63" xlink:href="resources/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve6)" /> |
| </g> |
| </g> |
| </g> |
| </g> |
| <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.5 $</text> |
| <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| </svg> |