Cirrus Logic CS485 Dokumentacja Strona 216

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 319
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 215
Intel
®
Image Processing Library Reference Manual
10-18
10
GreaterSFP
Tests if the image’s pixel values
are greater than a floating-point
scalar value.
IPLStatus iplGreaterSFP (IplImage*
src
, float
s
,
IplImage*
dst
);
src
Thesourceimage.
s
The 32-bit floating-point scalar value to be
compared with pixel values.
dst
The resultant 1-bit image.
Discussion
The function iplGreaterSFP() compares the pixels of the input image
src
and a scalar value
s
for “greater than” and writes the results to a 1-bit
image
dst
. If an input pixel’s value is greater than
s
,thenthe
corresponding pixel in
dst
is set to 1; otherwise the pixel in
dst
is set to 0.
The function supports only images with 32-bit floating-point pixel data.
(For images with data of other types, use the function
iplGreaterS()
described on the previous page.) If the source image COI is not set, a pixel
is considered to be “greater” than
s
only if each channel in the pixel is
greater than
s
. If the COI is set, the function compares
s
and the pixel
values in the COI.
The function returns
IPL_StsOK if the compare operation is successful.
If you pass an image with data of an unsupported type or a null pointer, the
function does not perform the compare operation and returns an error status
code.
Przeglądanie stron 215
1 2 ... 211 212 213 214 215 216 217 218 219 220 221 ... 318 319

Komentarze do niniejszej Instrukcji

Brak uwag