answersLogoWhite

0

Assuming the image is an RGB image, sum the red, green and blue components of the pixels separately then divide each by the number of pixels. E.g., given two pixels RGB(a, b, c) and RGB(x, y, z) the mean is RGB ((a+x)/2, (b+y)/2, (c+z)/2).

User Avatar

Wiki User

8y ago

What else can I help you with?

Continue Learning about Engineering

What is block programming?

it is a program that computes whit aerodynamic serious consequences with full winded service that control a component


How do you write a c program that computes results of 10 students for any given 4 subjects grading their results from a A to U?

ghfj


How many days after a program deviation occurs should a program manager inform the milestone decision authority?

90


Program for marksheet in c language?

The std::cout and std::cin streams are peculiar to the C++ standard library. They are not available in the C standard library, but are analogous to stdin and stdout which is in the C standard library.


How do you write a CPP program to find standard deviation of N numbers?

1. Calculate the mean average of the N numbers. Suppose it is stored in the variable D. 2. Now calculate the differences between each number with D and square the value. As there are N numbers so store this difference in an array. Example arr[0] = (num0 - D)^2; arr[1] = (num1 - D)^2; arr[N-1] = (numN - D)^2; 3. Now sum array value and divide by N, suppose the value is stored in F. Now square root F. It is the standard deviation of your N number. I hope you can write the code by yourself or follow the part: suppose you will store the N numbers in an array num. Now: int num[N+2], D = 0; //or declare the num array as float or double if there are any precision value for(int i = 0; i < N; i++) { D += num[i]; } D /= N; int arr[N+2]; for(int i = 0; i < N; i++) { arr[i] = (num[i] - D)^2; //square the difference. } int F = 0; //if precision value is accepted then declare F as float or double not int. for(int i = 0; i < N; i++) { F += arr[i]; } F /= N; F = sqrt(F); //use #include <cmath> in your header file list so that you can use sqrt() function or simply use #include <bits/stdc++.h> cout<<F<<endl; - Thanks

Related Questions

How do you calcuate standard deviation?

A worked out example is shown in the related link. There are a number of calculators that do this automatically. Also, the Excel program (and most other spreadsheet programs) include a standard deviation function. In Excel, it is +stdev(a1:a10) for a list of numbers from a1 to a10.


What is block programming?

it is a program that computes whit aerodynamic serious consequences with full winded service that control a component


How do you write a c program that computes results of 10 students for any given 4 subjects grading their results from a A to U?

ghfj


How many days after a program deviation occurs should a program manager inform the milestone decision authority?

90


How do you write a c program to calculate mean variance and standard deviation?

Program in CHere is a program in C to calculate mean variance and standard deviation: #include#includevoid main(){float a[50],sum=0,vsum=0,mean,variance,sd;int n,i;printf("Enter the no of valus");scanf("%d",&n);printf("Enter the no of valus");for(i=0;i


What is the verb for computer?

The verb for computer is compute.Other verbs are computes, computing and computed."I am computing"."We have computed the program""I like to compute".


Write a program in C programming language that computes the roots of the quadratic equation ax2 plus bx plus c?

Write your program and if you are having a problem post it here with a description of the problem you are having. What you are asking is for someone to do your homework for you.


Why important to have standard text code?

standard text code is important because it would enable any programmer or programme to use the same combination of numbers to represent the same individual pieces of data.


How do you write a standard basic program?

That really depends on what sort of program you are trying to build, what do you want the program to do?


Implement a short C program that works with factorization of integers you will write C program that computes and prints out the sum of all natural numbers below 100000 that are multiples of 3or 5 or7?

#include<stdio.h> #include<conio.h> void main() { int i=1,sum=0; clrscr(); while(i<10000) { if((i%3==0)(i%5==0)(i%7==0)) { sum=sum+i; } i++; } printf("\nThe sum is%d",sum); getch(); }


What is the AFOSH standard for radio frequency radiation safety program?

AFOSH Standard 48-9


Program to count the number of numbers in an array using 8085 microprocessor?

A program which is used to count the number of numbers in an array using a 8085 microprocessor is known as a assembly language program.