PANDORE Version 6 GREYC-IMAGE

psetborder



Affectation d'une valeur sur le bord d'une image.



Synopsis

psetborder widthl widthr heightu heightd depthf depthb val [im_in|-] [im_out|-]

Description

L'opérateur psetborder permet d'affecter la valeur val sur la bordure de l'image im_in. La bordure d'une image 3D à une taille de largeur widthl pixels à gauche et widthr pixels à droite, de hauteur heightu pixels en haut et heightd pixels en bas et de profondeur depthf pixels devant et depthb pixels derrière.

Pour une image 2D, les dimensions sont:

    --------------------------------------
    |                 ^                  |
    |                 |                  |
    |               heightu              |
    |                 |                  |
    |                 v                  |
    |           -------------            |
    |           |             |          |
    | <-widthl->|             |<-widthr->|
    |           |             |          |
    |            -------------           |
    |                 ^                  |
    |                 |                  |
    |              heigthd               |
    |                 |                  |
    |                 v                  |
    -------------------------------------

Pour une image couleur ou multispectrale, la bordure est modifée avec la même valeur val sur toutes les bandes.

Paramètres

Entrées

Sorties

Résultat

Retourne SUCCESS ou FAILURE.

Exemples

Sélection des objets d'une sous image de tangram.pan qui ne touchent pas le bord de l'image.

   pextractsubimage  30 30 0 150 150 0 tangram.pan in.pan
   psetcst 0 in.pan i1.pan
   psetborder 1 1 1 1 1 1 255 i1.pan i2.pan
   pdilationreconstruction 8 i2.pan in.pan i3.pan
   pdif in.pan i3.pan out.pan

Voir aussi

Utilitaire

Prototype C++

Errc PSetBorder( const Img3duc &im_in, Img3duc &im_out, Long widthl, Long widthr, Long heightu, Long heigthd, Long depthf, Long depthb, Uchar val );

Auteur: Régis Clouard