Xcos setup: fix an IndexOutOfBoundsException after 22ee913d
[scilab.git] / scilab / modules / graphics / help / ja_JP / color_management / hsv2rgb.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!--
4
5  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
6
7  * Copyright (C) INRIA - Serge Steer
8
9  * 
10
11
12  * Copyright (C) 2012 - 2016 - Scilab Enterprises
13  *
14  * This file is hereby licensed under the terms of the GNU GPL v2.0,
15  * pursuant to article 5.3.4 of the CeCILL v.2.1.
16  * This file was originally licensed under the terms of the CeCILL v2.1,
17  * and continues to be available under such terms.
18  * For more information, see the COPYING file which you should have received
19  * along with this program.
20
21  *
22
23  -->
24
25 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="hsv2rgb">
26     
27     <refnamediv>
28         
29         <refname>hsv2rgb</refname>
30         
31         <refpurpose>HSV カラーを RGBに変換する</refpurpose>
32         
33     </refnamediv>
34     
35     <refsynopsisdiv>
36         
37         <title>呼び出し手順</title>
38         
39         <synopsis>[r,g,b] = hsv2rgb(h,s,v)
40             
41             rgb = hsv2rgb(h,s,v)
42             
43             [r,g,b] = hsv2rgb(hsv)
44             
45             rgb = hsv2rgb(hsv)
46             
47         </synopsis>
48         
49     </refsynopsisdiv>
50     
51     <refsection>
52         
53         <title>引数</title>
54         
55         <variablelist>
56             
57             <varlistentry>
58                 
59                 <term>h</term>
60                 
61                 <listitem>
62                     
63                     <para>大きさnのベクトル. "hue" の値.
64                         
65                     </para>
66                     
67                 </listitem>
68                 
69             </varlistentry>
70             
71             <varlistentry>
72                 
73                 <term>s</term>
74                 
75                 <listitem>
76                     
77                     <para>大きさnのベクトル. "saturation" の値.
78                         
79                     </para>
80                     
81                 </listitem>
82                 
83             </varlistentry>
84             
85             <varlistentry>
86                 
87                 <term>v</term>
88                 
89                 <listitem>
90                     
91                     <para>大きさnのベクトル. "value" の値
92                         
93                     </para>
94                     
95                 </listitem>
96                 
97             </varlistentry>
98             
99             <varlistentry>
100                 
101                 <term>hsv</term>
102                 
103                 <listitem>
104                     
105                     <para> n x 3行列. 各行には [hue saturation value] の組が含まれます.
106                         
107                     </para>
108                     
109                 </listitem>
110                 
111             </varlistentry>
112             
113             <varlistentry>
114                 
115                 <term>r</term>
116                 
117                 <listitem>
118                     
119                     <para>大きさ nの列ベクトル. 対応する"red" の値.
120                         
121                     </para>
122                     
123                 </listitem>
124                 
125             </varlistentry>
126             
127             <varlistentry>
128                 
129                 <term>g</term>
130                 
131                 <listitem>
132                     
133                     <para>大きさ nの列ベクトル. 対応する"green" の値.
134                         
135                     </para>
136                     
137                 </listitem>
138                 
139             </varlistentry>
140             
141             <varlistentry>
142                 
143                 <term>b</term>
144                 
145                 <listitem>
146                     
147                     <para>大きさ nの列ベクトル. 対応する"blue" の値.
148                         
149                     </para>
150                     
151                 </listitem>
152                 
153             </varlistentry>
154             
155             <varlistentry>
156                 
157                 <term>rgb</term>
158                 
159                 <listitem>
160                     
161                     <para> n x 3 行列. 各行には [red green blue] の組が含まれます.
162                         
163                     </para>
164                     
165                 </listitem>
166                 
167             </varlistentry>
168             
169         </variablelist>
170         
171     </refsection>
172     
173     <refsection>
174         
175         <title>説明</title>
176         
177         <para>関数 hsv2rgb はRGBおよびHSV色空間の間でカラーマップを変換します.
178             
179             hue値が 0 から 1.0 まで変化する時,
180             
181             対応する色は赤から黄色,緑,シアン,青,マゼンタ,そして赤に戻ります.
182             
183             実際に赤の値は 0 および 1.0の両方に存在します.
184             
185             saturationが 0 から 1.0 まで変化する時,
186             
187             対応する色 (hues) は飽和していない色(灰色の影)から(白色要素が存在しない)
188             
189             完全に飽和した色まで変化します.
190             
191             valueまたはbrightnessが 0 から 1.0 まで変化する時,
192             
193             対応する色の輝度は増加します.
194             
195         </para>
196         
197     </refsection>
198     
199     <refsection>
200         
201         <title>例</title>
202         
203         <programlisting role="example"><![CDATA[ 
204
205 t=[0:0.3:2*%pi]'; z=sin(t)*cos(t'); 
206
207 plot3d1(t,t,z) 
208
209 f=gcf();
210
211 for h=0:0.1:1
212
213   hsv=[h*ones(32,1) linspace(0,1,32)' 0.7*ones(32,1)];
214
215   f.color_map=hsv2rgb(hsv);
216
217   xpause(10000)
218
219 end
220
221 for v=0:0.1:1
222
223   hsv=[ones(32,1) linspace(0,1,32)' v*ones(32,1)];
224
225   f.color_map=hsv2rgb(hsv);
226
227   xpause(10000)
228
229 end
230
231  ]]></programlisting>
232         
233         <scilab:image>
234             
235             t=[0:0.3:2*%pi]'; z=sin(t)*cos(t');
236             
237             plot3d1(t,t,z)
238             
239             f=gcf();
240             
241             for h=0:0.1:1
242             
243             hsv=[h*ones(32,1) linspace(0,1,32)' 0.7*ones(32,1)];
244             
245             f.color_map=hsv2rgb(hsv);
246             
247             end
248             
249             for v=0:0.1:1
250             
251             hsv=[ones(32,1) linspace(0,1,32)' v*ones(32,1)];
252             
253             f.color_map=hsv2rgb(hsv);
254             
255             end
256             
257         </scilab:image>
258         
259     </refsection>
260     
261 </refentry>
262