Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxSetBorderValue.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxImageRep L_HXIMAGEREP HxSetBorderValue (HxImageRep im, int w, int h, HxValue val)
 SetBorderValue. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxSetBorderValue HxImageRep    im,
int    w,
int    h,
HxValue    val
 

SetBorderValue.

The function sets all pixels at the border to the given value.

00017 {
00018     int x1,y1,x2,y2;
00019     HxSizes sz=im.sizes();
00020     x1 = w;
00021     y1 = h;
00022     x2 = sz.x()-w;
00023     y2 = sz.y()-h;
00024 
00025     HxTagList tags;
00026     HxAddTag(tags, "x1", x1);
00027     HxAddTag(tags, "y1", y1);
00028     HxAddTag(tags, "x2", x2);
00029     HxAddTag(tags, "y2", y2);
00030     HxAddTag(tags, "val", val);
00031 
00032     HxAddTag(tags, "inside", false);
00033 
00034     return im.unaryPixOp("setPartImg", tags);
00035 }


Generated on Tue Feb 3 14:18:51 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001