VistaIOSelectBand(3)
π VistaIOSelectBand(3) β Library Functions Manual π
okay bestie, welcome to the VistaIOSelectBand page, she's a lil library function from the VistaIO crew and she is here to help you pick out band(s) of image pixels. no cap. let's get into it π¦
β¨ NAME β¨
VistaIOSelectBand β select bands of image pixels π
πΈ SYNOPSIS πΈ
#include <vistaio.h>
VistaIOBoolean VistaIOSelectBand (routine, image, band, npixels, first_pixel)
VistaIOStringConst routine;
VistaIOImage image;
VistaIOBand band;
int *npixels;
VistaIOPointer *first_pixel;
π ARGUMENTS π
routineβ this one names the routine that's usingVistaIOSelectBandto check its arguments. the name gets dropped into any error messages thatVistaIOSelectBandspits out, so like, everyone knows who's responsible πimageβ specifies the image whose pixels are gonna get selected, periodt.bandβ may specify one particular band of the image to select, OR it can beVistaIOAllBands, which means "girl, give me every single band of this image." both options are valid, she's flexible πnpixelsβ returns the number of pixels selected. or it can beNULLif you're not about that number life. either way is fine β¨first_pixelβ returns the address of the first pixel selected. orNULL, same deal, no pressure π«Ά
π DESCRIPTION π
VistaIOSelectBand selects one band, or literally all the bands, of an image for processing. it's giving "picker of pixels." π
so image tells her which image we're working with, and band tells her either a single band of that image or all the bands of that image. then she does a lil vibe check on those two arguments (validity check, bestie, she's thorough), and after that she hands back β via npixels and first_pixel β the number and location of the pixels that got selected. and yes, those pixels are chillin' in a contiguous block of memory, all cozy together π§
either npixels or first_pixel can be NULL if that's the corresponding return value you actually want. you don't have to take both, she's not gonna force you. π
β RETURN VALUES β
VistaIOSelectBand returns TRUE if her image and band arguments are consistent with each other, and FALSE otherwise. slay or not slay, that's the whole deal πΈ
π SEE ALSO π
VistaIOImage(3), π
π DIAGNOSTICS π
``Routine: Band band referenced in image of nbands band(s).''
this one means the band argument is invalid, given the number of bands in image. like, you asked for a band that does not exist, bestie π. and Routine will be the name that was supplied by the routine argument β so yeah, that's why routine is there, it takes the blame for you π
π AUTHOR π
Art Pope <pope@cs.ubc.ca>
Adaption to vistaio: Gert Wollny <gw.fossdev@gmail.com>
and that's the whole page, you ate it, you understood it, iconic behavior fr fr π¦β¨
this was brought to you by VistaIO Version 1.2.14, dated 24 April 1993 β yes she's an older queen but she still serves π ππ
π¦ where this page comes from
- debian bookworm: libvistaio-dev 1.2.19-3 Β· libvista-orig
- debian trixie: libvistaio-dev 1.2.19-3+b2 Β· libvista-orig
- ubuntu jammy: libvistaio-dev 1.2.19-3 Β· libvista-orig
- ubuntu noble: libvistaio-dev 1.2.19-3 Β· libvista-orig
- ubuntu questing: libvistaio-dev 1.2.19-4
- ubuntu resolute: libvistaio-dev 1.2.19-4build1 Β· libvista-orig
- ubuntu stonking: libvistaio-dev 1.2.19-4build1 Β· libvista-orig
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms