|
| | ColorYUV (const Color &color_) |
| |
| | ColorYUV (double y_, double u_, double v_) |
| |
| ColorYUV & | operator= (const Color &color_) |
| |
| void | u (double u_) |
| |
| double | u (void) const |
| |
| void | v (double v_) |
| |
| double | v (void) const |
| |
| void | y (double y_) |
| |
| double | y (void) const |
| |
| | Color (Magick::Quantum red_, Magick::Quantum green_, Magick::Quantum blue_) |
| |
| | Color (Magick::Quantum red_, Magick::Quantum green_, Magick::Quantum blue_, Magick::Quantum alpha_) |
| |
| | Color (const char *x11color_) |
| |
| | Color (const Color &color_) |
| |
| | Color (const PixelPacket &color_) |
| |
| | Color (const std::string &x11color_) |
| |
| Color & | operator= (const Color &color_) |
| |
| const Color & | operator= (const char *x11color) |
| |
| const Color & | operator= (const std::string &x11color_) |
| |
|
const Color & | operator= (const PixelPacket &color_) |
| |
|
| operator PixelPacket () const |
| |
| | operator std::string () const |
| |
| void | alpha (double alpha_) |
| |
| double | alpha (void) const |
| |
|
void | alphaQuantum (Quantum alpha_) |
| |
| Quantum | alphaQuantum (void) const |
| |
|
void | blueQuantum (Quantum blue_) |
| |
| Quantum | blueQuantum (void) const |
| |
|
void | greenQuantum (Quantum green_) |
| |
| Quantum | greenQuantum (void) const |
| |
| void | isValid (bool valid_) |
| |
| bool | isValid (void) const |
| |
|
void | redQuantum (Quantum red_) |
| |
| Quantum | redQuantum (void) const |
| |
| double | intensity (void) const |
| |
|
|
| ColorYUV (PixelPacket *rep_, PixelType pixelType_) |
| |
| | Color (PixelPacket *rep_, PixelType pixelType_) |
| |
| void | pixel (PixelPacket *rep_, PixelType pixelType_) |
| |
Definition at line 336 of file Color.h.
◆ ColorYUV() [1/3]
| Magick::ColorYUV::ColorYUV |
( |
void | | ) |
|
◆ ColorYUV() [2/3]
| Magick::ColorYUV::ColorYUV |
( |
const Color & | color_ | ) |
|
Definition at line 555 of file Color.cpp.
556 : Color(color_)
557{
558}
◆ ColorYUV() [3/3]
| Magick::ColorYUV::ColorYUV |
( |
double | y_, |
|
|
double | u_, |
|
|
double | v_ ) |
Definition at line 560 of file Color.cpp.
561 : Color(scaleDoubleToQuantum(y_ + 1.13980 * v_),
562 scaleDoubleToQuantum(y_ - (0.39380 * u_) - (0.58050 * v_)),
563 scaleDoubleToQuantum(y_ + 2.02790 * u_))
564{
565 alphaQuantum(OpaqueOpacity);
566}
◆ ~ColorYUV()
| Magick::ColorYUV::~ColorYUV |
( |
void | | ) |
|
◆ operator=()
Definition at line 572 of file Color.cpp.
573{
574 *static_cast<Magick::Color*>(this)=color_;
575 return(*this);
576}
◆ u() [1/2]
| void Magick::ColorYUV::u |
( |
double | u_ | ) |
|
Definition at line 578 of file Color.cpp.
579{
580 double V = v();
581 double Y = y();
582
583 redQuantum(scaleDoubleToQuantum(Y + 1.13980 * V ));
584 greenQuantum(scaleDoubleToQuantum( Y - (0.39380 * u_) - (0.58050 * V)));
585 blueQuantum(scaleDoubleToQuantum( Y + 2.02790 * u_));
586}
◆ u() [2/2]
| double Magick::ColorYUV::u |
( |
void | | ) |
const |
Definition at line 588 of file Color.cpp.
589{
590 return scaleQuantumToDouble((-0.14740 * redQuantum()) - (0.28950 *
591 greenQuantum()) + (0.43690 * blueQuantum()));
592}
◆ v() [1/2]
| void Magick::ColorYUV::v |
( |
double | v_ | ) |
|
Definition at line 594 of file Color.cpp.
595{
596 double U = u();
597 double Y = y();
598
599 redQuantum(scaleDoubleToQuantum( Y + 1.13980 * v_ ));
600 greenQuantum(scaleDoubleToQuantum( Y - (0.39380 * U) - (0.58050 * v_) ));
601 blueQuantum(scaleDoubleToQuantum( Y + 2.02790 * U ));
602}
◆ v() [2/2]
| double Magick::ColorYUV::v |
( |
void | | ) |
const |
Definition at line 604 of file Color.cpp.
605{
606 return scaleQuantumToDouble((0.61500 * redQuantum()) - (0.51500 *
607 greenQuantum()) - (0.10000 * blueQuantum()));
608}
◆ y() [1/2]
| void Magick::ColorYUV::y |
( |
double | y_ | ) |
|
Definition at line 610 of file Color.cpp.
611{
612 double U = u();
613 double V = v();
614
615 redQuantum(scaleDoubleToQuantum(y_ + 1.13980 * V));
616 greenQuantum(scaleDoubleToQuantum(y_ - (0.39380 * U) - (0.58050 * V)));
617 blueQuantum(scaleDoubleToQuantum(y_ + 2.02790 * U));
618}
◆ y() [2/2]
| double Magick::ColorYUV::y |
( |
void | | ) |
const |
Definition at line 620 of file Color.cpp.
621{
622 return scaleQuantumToDouble((0.29900 * redQuantum()) + (0.58700 *
623 greenQuantum()) + (0.11400 * blueQuantum()));
624}
The documentation for this class was generated from the following files:
- ImageMagick-6/Magick++/lib/Magick++/Color.h
- ImageMagick-6/Magick++/lib/Color.cpp