Go to the documentation of this file.00001 #include "GrayLevelImage8.h"
00002
00003
00004
00005 using namespace puma2;
00006
00007 GrayLevelImage8::GrayLevelImage8(int width, int height)
00008 : SingleElementImage<byte>(width, height)
00009 {
00010 setupImageBaseVariables();
00011 alt = new MultiElementImage<byte,1>(width, height,
00012 (MultiElementImage<byte,1>*) (void*) (SingleElementImage<byte>*) this, 0,0);
00013 };
00014
00015 GrayLevelImage8::GrayLevelImage8(int width, int height, GrayLevelImage8 * m, int xo, int yo)
00016 : SingleElementImage<byte>(width, height,m,xo,yo)
00017 {
00018 setupImageBaseVariables();
00019 alt = new MultiElementImage<byte,1>(width, height,
00020 (MultiElementImage<byte,1>*) (void*) (SingleElementImage<byte>*) this, xo,yo);
00021 };
00022
00023 GrayLevelImage8::GrayLevelImage8(const GrayLevelImage8& f)
00024 : SingleElementImage<byte>(f)
00025 {
00026 using namespace std;
00027
00028 setupImageBaseVariables();
00029
00030 alt = new MultiElementImage<byte,1>(f.getWidth(), f.getHeight(),
00031 (MultiElementImage<byte,1>*) (void*) (SingleElementImage<byte>*) this, 0,0);
00032 };
00033
00034 GrayLevelImage8::~GrayLevelImage8()
00035 {
00036 using namespace std;
00037
00038 delete alt;
00039 };
00040
00041 MultiElementImage<byte,1> & GrayLevelImage8::asMultiElementImage()
00042 {
00043 return *alt;
00044 };
00045
00046 void GrayLevelImage8::readFromFile(const char * fileName)
00047 {
00048
00049 }
00050
00051 void GrayLevelImage8::writeToFile(const char * fileName) const
00052 {
00053
00054 }
00055
00056 void GrayLevelImage8::reset()
00057 {
00058 }
00059
00060
00061