mlib_ImageDilate4(3MLIB) mediaLib Library Functions mlib_ImageDilate4(3MLIB)NAME
mlib_ImageDilate4 - four neighbor dilate
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_ImageDilate4(mlib_image *dst, const mlib_image *src);
DESCRIPTION
The mlib_ImageDilate4() function performs a dilation operation on an image by using each pixel's four orthogonal neighbors. The source and
destination images must be single-channel images. The data type can be MLIB_BIT, MLIB_BYTE, MLIB_SHORT, MLIB_USHORT, or MLIB_INT.
For 4-neighbor binary images, it uses the following equation:
dst[x][y][0] = OR{ src[x][y][0],
src[x-1][y][0], src[x+1][y][0],
src[x][y-1][0], src[x][y+1][0] }
For 4-neighbor grayscale images, it uses the following equation:
dst[x][y][0] = MAX{ src[x][y][0],
src[x-1][y][0], src[x+1][y][0],
src[x][y-1][0], src[x][y+1][0] }
where x = 1, ..., w-2; y = 1, ..., h-2.
PARAMETERS
The function takes the following arguments:
dst Pointer to destination image
src Pointer to source image.
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO mlib_ImageDilate4_Fp(3MLIB), mlib_ImageDilate8(3MLIB), mlib_ImageDilate8_Fp(3MLIB), attributes(5)SunOS 5.11 2 Mar 2007 mlib_ImageDilate4(3MLIB)
Check Out this Related Man Page
mlib_ImageDilate4(3MLIB) mediaLib Library Functions mlib_ImageDilate4(3MLIB)NAME
mlib_ImageDilate4 - four neighbor dilate
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_ImageDilate4(mlib_image *dst, const mlib_image *src);
DESCRIPTION
The mlib_ImageDilate4() function performs a dilation operation on an image by using each pixel's four orthogonal neighbors. The source and
destination images must be single-channel images. The data type can be MLIB_BIT, MLIB_BYTE, MLIB_SHORT, MLIB_USHORT, or MLIB_INT.
For 4-neighbor binary images, it uses the following equation:
dst[x][y][0] = OR{ src[x][y][0],
src[x-1][y][0], src[x+1][y][0],
src[x][y-1][0], src[x][y+1][0] }
For 4-neighbor grayscale images, it uses the following equation:
dst[x][y][0] = MAX{ src[x][y][0],
src[x-1][y][0], src[x+1][y][0],
src[x][y-1][0], src[x][y+1][0] }
where x = 1, ..., w-2; y = 1, ..., h-2.
PARAMETERS
The function takes the following arguments:
dst Pointer to destination image
src Pointer to source image.
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO mlib_ImageDilate4_Fp(3MLIB), mlib_ImageDilate8(3MLIB), mlib_ImageDilate8_Fp(3MLIB), attributes(5)SunOS 5.10 10 Nov 2004 mlib_ImageDilate4(3MLIB)
hi 2 all
i have a server runnin redhat 7.2
kernel source is in /usr/src/linux2.4 as usual . I would like to install kernel source for kernel-source-2.4.7-10 also into /usr/src without overwriting whats there
when i do a regular install i just get kernel-source-2.4.9-e.3 (which is newer... (1 Reply)
I have this program which has lots of source files in the directories
src
src/dir1
src/dir2
src/dir3... and so on
I am trying to understand the following Makefile:
CC = gcc
CFLAGS= -g -c -D_REENTRANT
SOURCES = src/main.c src/dir1/a.c src/dir1/b.c src/dir2/x.c src/dir2/y.c ...and so on... (5 Replies)
the data file is as below:
> cat master.cnf
/usr| location for usr|5
/src/ver1| version 1 |10
/src/ver2/log| ver 2 log |25
/src/sys/apps/log| Application log for sys|36
/src/sys/apps/conf| configuration location for app|45
/src/sys/apps/bin| binary location app|55my script is as below:
... (1 Reply)
Hi all,
I am storing all the fil names from a directory into a file "filenames.txt" like using awk and cut commands
base/src/file1.sc
base/src/file2.sc
base/src/file3.sc
base/src/file4.sc
base/src/file5.sc
base/src/file6.sc
base/src/file7.sc
base/src/file8.sc
base/src/file9.sc
and... (7 Replies)
The /src file is obviously designed to contain source code, so when I download programs, I should put them in /src (because they contain the source files + the executables)? What do most people do with the executables? Do they copy them to /bin, make links to them in /bin, or just leave them in... (4 Replies)
Hi All,
In below code, i am trying to read row line byb line to get the src & cod. Once i get the src & cod, i am trying to get the cnt from detail.txt file, where 1st column should match src & second column should match cod. But in both i am getting error. Could you please let me know where i... (2 Replies)
Hi,
Can some one guide me to identify the position of a character using index in UNIX.
I have a record like "17/11/2010 15:16:39;reject;10.44.48.65;daemon alert; src: 10.44.48.112; dst: 172.21.52.88" . I need to identify the value which comes after _src:_ (_ denotes space).
I am able to... (15 Replies)
Hi,
My source file happens to be src.src with following contents:
1,liv 52,syrup,twice a day,children
When I do a :
for ii in `cat src.src`
do
echo $ii
medicine_name=`echo $ii | cut -f -d2","`
echo $medicine_name
done
I get output of
echo $medicine_name
as :
an the output of... (2 Replies)