Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages   Examples  

FloatImage.cpp

00001 /* Copyright (c) 2001 C. Grigorescu S.E. Grigorescu */
00002 
00003 #include "FloatImage.h"
00004 
00005 FloatImage &FloatImage::operator=(Image< float >& img)
00006 {
00007   width = img.getWidth();
00008   height = img.getHeight();
00009   setName(img.getName());
00010   if (img.getWidth()*img.getHeight() != 0)
00011     setPixels(img.getWidth(), img.getHeight(), img.getPixels());
00012   else
00013     pixels = NULL;
00014   return *this;
00015 }
00016 
00017 
00018