Problem 2195. Sum of the pixel values for the blue color

Calculate the sum of the pixel values for the blue color, with a picture as an input.

NOTE: The picture will be provided as a matrix of size Height*Width*Colors

To test your algorithm, you can import the picture to MATLAB with the command 'inputImage=imread('')'; and introduce 'inputImage' in your algorithm. The output should be '54791054'

Solution Stats

62.96% Correct | 37.04% Incorrect
Last solution submitted on Oct 19, 2016

Problem Comments

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more