Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 3e60ff9d4d6f58c8fbd17208f14089fa > files > 96

octave-doc-3.2.3-3mdv2010.0.i586.rpm

<html lang="en">
<head>
<title>Color Conversion - Untitled</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Untitled">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Image-Processing.html#Image-Processing" title="Image Processing">
<link rel="prev" href="Plotting-on-top-of-Images.html#Plotting-on-top-of-Images" title="Plotting on top of Images">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Color-Conversion"></a>
<p>
Previous:&nbsp;<a rel="previous" accesskey="p" href="Plotting-on-top-of-Images.html#Plotting-on-top-of-Images">Plotting on top of Images</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Image-Processing.html#Image-Processing">Image Processing</a>
<hr>
</div>

<h3 class="section">31.5 Color Conversion</h3>

<p>Octave supports conversion from the RGB color system to NTSC and HSV
and vice versa.

<!-- ./image/rgb2hsv.m -->
   <p><a name="doc_002drgb2hsv"></a>

<div class="defun">
&mdash; Function File: <var>hsv_map</var> = <b>rgb2hsv</b> (<var>rgb_map</var>)<var><a name="index-rgb2hsv-2234"></a></var><br>
<blockquote><p>Transform a colormap or image from the rgb space to the hsv space.

        <p>A color n the RGB space consists of the red, green and blue intensities.

        <p>In the HSV space each color is represented by their hue, saturation
and value (brightness).  Value gives the amount of light in the color. 
Hue describes the dominant wavelength. 
Saturation is the amount of Hue mixed into the color. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dhsv2rgb.html#doc_002dhsv2rgb">hsv2rgb</a>. 
</p></blockquote></div>

<!-- ./image/hsv2rgb.m -->
   <p><a name="doc_002dhsv2rgb"></a>

<div class="defun">
&mdash; Function File: <var>rgb_map</var> = <b>hsv2rgb</b> (<var>hsv_map</var>)<var><a name="index-hsv2rgb-2235"></a></var><br>
<blockquote><p>Transform a colormap or image from the hsv space to the rgb space. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002drgb2hsv.html#doc_002drgb2hsv">rgb2hsv</a>. 
</p></blockquote></div>

<!-- ./image/rgb2ntsc.m -->
   <p><a name="doc_002drgb2ntsc"></a>

<div class="defun">
&mdash; Function File:  <b>rgb2ntsc</b> (<var>rgb</var>)<var><a name="index-rgb2ntsc-2236"></a></var><br>
<blockquote><p>Transform a colormap or image from RGB to NTSC. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002dntsc2rgb.html#doc_002dntsc2rgb">ntsc2rgb</a>. 
</p></blockquote></div>

<!-- ./image/ntsc2rgb.m -->
   <p><a name="doc_002dntsc2rgb"></a>

<div class="defun">
&mdash; Function File:  <b>ntsc2rgb</b> (<var>yiq</var>)<var><a name="index-ntsc2rgb-2237"></a></var><br>
<blockquote><p>Transform a colormap or image from NTSC to RGB. 
<!-- Texinfo @sp should work but in practice produces ugly results for HTML. -->
<!-- A simple blank line produces the correct behavior. -->
<!-- @sp 1 -->

     <p class="noindent"><strong>See also:</strong> <a href="doc_002drgb2ntsc.html#doc_002drgb2ntsc">rgb2ntsc</a>. 
</p></blockquote></div>

<!-- DO NOT EDIT!  Generated automatically by munge-texi. -->
<!-- Copyright (C) 1996, 1997, 1999, 2000, 2002, 2005, 2007, 2009 Kurt Hornik -->
<!-- This file is part of Octave. -->
<!-- Octave is free software; you can redistribute it and/or modify it -->
<!-- under the terms of the GNU General Public License as published by the -->
<!-- Free Software Foundation; either version 3 of the License, or (at -->
<!-- your option) any later version. -->
<!-- Octave is distributed in the hope that it will be useful, but WITHOUT -->
<!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -->
<!-- FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License -->
<!-- for more details. -->
<!-- You should have received a copy of the GNU General Public License -->
<!-- along with Octave; see the file COPYING.  If not, see -->
<!-- <http://www.gnu.org/licenses/>. -->
<!-- Written by Kurt Hornik <Kurt.Hornik@wu-wien.ac.at> on 1996/05/14 -->
   </body></html>