OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
src
base
ossimCmyVector.cpp
Go to the documentation of this file.
1
//*******************************************************************
2
//
3
// License: See top level LICENSE.txt file.
4
//
5
// Author: Garrett Potts (gpotts@imagelinks.com)
6
// Description:
7
//
8
//*************************************************************************
9
// $Id: ossimCmyVector.cpp 9966 2006-11-29 02:01:07Z gpotts $
10
#include <
ossim/base/ossimCmyVector.h
>
11
#include <
ossim/base/ossimRgbVector.h
>
12
13
ossimCmyVector::ossimCmyVector
(
const
ossimRgbVector
& rgb)
14
{
15
theC
= 255 - rgb.
getR
();
16
theM
= 255 - rgb.
getG
();
17
theY
= 255 - rgb.
getB
();
18
}
19
20
const
ossimCmyVector
&
ossimCmyVector::operator =
(
const
ossimRgbVector
& rgb)
21
{
22
theC
= 255 - rgb.
getR
();
23
theM
= 255 - rgb.
getG
();
24
theY
= 255 - rgb.
getB
();
25
26
return
*
this
;
27
}
ossimRgbVector
Definition:
ossimRgbVector.h:21
ossimRgbVector::getR
unsigned char getR() const
Definition:
ossimRgbVector.h:104
ossimCmyVector::theY
ossim_uint8 theY
Definition:
ossimCmyVector.h:53
ossimCmyVector
Definition:
ossimCmyVector.h:18
ossimRgbVector::getB
unsigned char getB() const
Definition:
ossimRgbVector.h:106
ossimCmyVector::ossimCmyVector
ossimCmyVector(unsigned char c, unsigned char m, unsigned char y)
Definition:
ossimCmyVector.h:27
ossimRgbVector::getG
unsigned char getG() const
Definition:
ossimRgbVector.h:105
ossimCmyVector::operator=
const ossimCmyVector & operator=(const ossimRgbVector &rgb)
Definition:
ossimCmyVector.cpp:20
ossimCmyVector.h
ossimCmyVector::theC
ossim_uint8 theC
Definition:
ossimCmyVector.h:51
ossimCmyVector::theM
ossim_uint8 theM
Definition:
ossimCmyVector.h:52
ossimRgbVector.h
Generated on Fri Aug 3 2018 08:46:46 for OSSIM - Open Source Software Image Map by
1.8.14