mlib_ImageMoment2(3MLIB) mediaLib Library Functions mlib_ImageMoment2(3MLIB)NAME
mlib_ImageMoment2 - second moment
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_ImageMoment2(mlib_d64 *moment, const mlib_image *img);
DESCRIPTION
The mlib_ImageMoment2() function computes the second moment of each channel in an image.
It uses the following equation:
1 w-1 h-1
moment[i] = ----- * SUM SUM img[x][y][i]**2
w*h x=0 y=0
PARAMETERS
The function takes the following arguments:
moment Pointer to moment array, where length is the number of channels in the image.
img Pointer to an 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_ImageMoment2_Fp(3MLIB), attributes(5)SunOS 5.10 10 Nov 2004 mlib_ImageMoment2(3MLIB)
Check Out this Related Man Page
mlib_ImageMoment2(3MLIB) mediaLib Library Functions mlib_ImageMoment2(3MLIB)NAME
mlib_ImageMoment2 - second moment
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_ImageMoment2(mlib_d64 *moment, const mlib_image *img);
DESCRIPTION
The mlib_ImageMoment2() function computes the second moment of each channel in an image.
It uses the following equation:
1 w-1 h-1
moment[i] = ----- * SUM SUM img[x][y][i]**2
w*h x=0 y=0
PARAMETERS
The function takes the following arguments:
moment Pointer to moment array, where length is the number of channels in the image.
img Pointer to an 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_ImageMoment2_Fp(3MLIB), attributes(5)SunOS 5.11 2 Mar 2007 mlib_ImageMoment2(3MLIB)
I cannot read the last moment
the file was modified - it returns
"Most recent access" instead:
code:
</td>
<th><?FILE *fatr=fopen(iindname.c_str(), "r");
if(fatr){
struct stat statbuf;
fstat(fileno(fatr), &statbuf);
fclose(fatr);
?> ... (4 Replies)
Sorry if this been posted before.
At the moment I'm having problem with the iscntrl() function. I need it to run a check on code entered into a Text Box, however I also need to allow the "Ö, ö" Swedish characters. The iscntrl() function seems to pick up the characters above as part of the... (0 Replies)
Hello All - Newbie here so please bear with me
I work in a lab looking after HP and AIX systems. At the moment 2 of each. I will be constantly tearing these down and putting on different OS versions as the need requires by our Customers for testing.
Question is - Is it possible to have Ghost OS... (5 Replies)
Hi
At the moment I am able to add text to a file but what I need to do is make sure the same value is not duplicated.
Can anyone tell me how to search a file and prevent an update from taking place if the value to be entered already exists in the file?
Any help would be greatly... (4 Replies)
Hi Guys,
At the moment I'm experiencing a problem where one of the filesystems is being locked up because it looks like is running out of buffers and according to IBM a workaround should be decreasing the size of the
j2_maxPageReadAhead. My question is what if I turn on CIO at the... (5 Replies)
Hi All.
having a blonde moment here... can someone please tell me how to check ALL processors currently running on my Unix Host?
thank you
Brian (2 Replies)
Hello there,
I want to know what are the ways to monitorize and control/stop flooding on my server, because I am heavily flooded. At this moment I am doing all this manually (when I see that my bandwidth is lowering or some applications are freezing), my main working tool being iptables.But I... (1 Reply)
I have the following sh file which I originally wrote for HP Unix(which worked great)... but df is different in AIX (HP doesn't have a % in df -k), So I need to remove the % for $x at the moment I'm getting 68% I need it to be 68 so my script complete.
Any help would be welcome.. I'm sure this... (7 Replies)
Hi all,
Can someone please advise how I can get this ls to display in the order that I want them to be.
At the moment, running this command below:
server01:> ls -1d set* | sort -n
set0
set1
set10
set11
set12
set13
set14
set2
set3
set4
set5
set6
set7 (2 Replies)
Hi Guys,
I am relatively new to scripting at the moment and am struggling to get the following function to work. For some reason it does not recognise the arithmatic symbol when i select option1. Any help would be greatly appreciated.
menu ()
{
echo "=============="
echo "Calculator"... (4 Replies)
Hi Experts,
If a thread running on CPU needs some data from RAM (from near or far RAM) it requests the data (this moment of time is t0) and gets it in moment of time in t1, and continues his work.
Between t0 and t1, while data is transferring from RAM, the thread is goes out from CPU? Is the... (2 Replies)
Hi all,
I am sure some gurus will find a better way of doing this. FYI, I've manually modified some of the data 'coz they are somewhat confidential, so there may be some typo errors.
At the moment, I have 3 files that I am trying to search for. Sometime in the future, it may go beyond 3... (2 Replies)