Debian Codegraph @

samples/extensions/histogramNormalization.svg

raw
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
3 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
5 <!--
6
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
13
14 http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21
22 -->
23 <!-- ====================================================================== -->
24 <!-- regularPoly extension tag test -->
25 <!-- -->
26 <!-- @author [email protected] -->
27 <!-- @version $Id$ -->
28 <!-- ====================================================================== -->
29
30 <?xml-stylesheet type="text/css" href="extension.css" ?>
31
32 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="body" width="450" height="500" xml:space="preserve"
33 viewBox="0 0 450 500"
34 xmlns:batikExt="http://xml.apache.org/batik/ext">
35
36 <title>Histogram Normalization Extension Tag</title>
37
38 <!-- ============================================================= -->
39 <!-- Test content -->
40 <!-- ============================================================= -->
41 <g id="testContent" class="legend" style="text-anchor:middle">
42 <text x="225" y="40" class="title">Histogram Normalization Extension Tag</text>
43
44 <g transform="translate(0, 75)">
45 <rect fill="#DAA" x="25" y="0" width="160" height="220"/>
46 <image xlink:href="histogramNormalization.jpg"
47 x="45" y="20" width="120" height="180"/>
48 <text x="105" y="235" text-anchor="middle">Before</text>
49 </g>
50
51 <g transform="translate(240,75)" >
52 <switch>
53 <g requiredExtensions=
54 "http://xml.apache.org/batik/ext/histogramNormalization/1.0">
55 <rect fill="#ADA" x="25" y="0" width="160" height="220"/>
56
57 <filter id="fix">
58 <feComponentTransfer>
59 <feFuncR type="gamma" exponent=".95"/>
60 <feFuncG type="gamma" exponent=".95"/>
61 <feFuncB type="gamma" exponent=".95"/>
62 </feComponentTransfer>
63 <batikExt:histogramNormalization trim="2"/>
64 </filter>
65 <image filter="url(#fix)"
66 xlink:href="histogramNormalization.jpg"
67 x="45" y="20" width="120" height="180"/>
68 <text x="105" y="235" text-anchor="middle">With Extension</text>
69 </g>
70
71 <g >
72 <rect fill="#DAA" x="25" y="0" width="160" height="220"/>
73 <image xlink:href="histogramNormalization.jpg"
74 x="45" y="20" width="120" height="180"/>
75 <text x="105" y="235" text-anchor="middle">Extension not present</text>
76 </g>
77 </switch>
78
79 </g>
80
81
82 </g>
83
84 <!-- ============================================================= -->
85 <!-- Batik sample mark -->
86 <!-- ============================================================= -->
87 <use xlink:href="../batikLogo.svg#Batik_Tag_Box" />
88 </svg>