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

New to MATLAB?

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

Created by Inigo San Aniceto

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'

Problem Group

Solution Statistics

28 correct solutions 15 incorrect solutions
Last solution submitted on Feb 24, 2015