ColorImageRGB8.cpp
Go to the documentation of this file.
00001 #include <string>
00002 #include "ColorImageRGB8.h"
00003 //#include "ImageReader.h" // TODO
00004 // #include "ImageWriter.h"// TODO
00005 #include "MultiElementImage.h"
00006 
00007 using namespace std;
00008 using namespace puma2;
00009 
00010 ColorImageRGB8::ColorImageRGB8(int x, int y)
00011         : MultiElementImage<byte,3>(x,y)
00012 {
00013   setupImageBaseVariables();
00014 }
00015 
00016 ColorImageRGB8::ColorImageRGB8(int x, int y, ColorImageRGB8 * m, int xo, int yo)
00017         : MultiElementImage<byte,3>(x,y,m,xo,yo)
00018 {
00019   setupImageBaseVariables();
00020 }
00021 
00022 void ColorImageRGB8::assign(int i, int j, int n, int v)
00023 {
00024   c0[i][j][n] = v;
00025 }
00026 
00027 void ColorImageRGB8::assign(int x, int y, int r, int g, int b)
00028 {
00029   c0[y][x][0] = r;
00030   c0[y][x][1] = g;
00031   c0[y][x][2] = b;
00032 }
00033 
00034 void ColorImageRGB8::operator= (const ColorImageRGB8 & o)
00035 {
00036   MultiElementImage<byte,3>::operator=(o);
00037 }
00038 
00039 void ColorImageRGB8::readFromFile(const char * fileName)
00040 {
00041   //ImageReader::readImage(*this, fileName); // TODO
00042 }
00043 
00044 void ColorImageRGB8::writeToFile(const char * fileName) const
00045 {
00046   // ImageWriter::writeImage(*this, fileName); // TODO
00047 }
00048 
00049 void ColorImageRGB8::reset()
00050 {
00051 }
00052 


obj_rec_gui
Author(s): AGAS/agas@uni-koblenz.de
autogenerated on Mon Oct 6 2014 02:53:43