Discover MakerZone

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

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!

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('http://static0.therichestimages.com/wp-content/uploads/2014/02/san-sebastian.jpg')'; and introduce 'inputImage' in your algorithm. The output should be '54791054'

Problem Group

Solution Statistics

32 correct solutions 20 incorrect solutions
Last solution submitted on Jun 08, 2016

Problem Comments