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('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

31 correct solutions 16 incorrect solutions
Last solution submitted on Aug 26, 2015

Problem Comments