Cody

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

Solution 2942557

Submitted on 13 Sep 2020
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x=imread('http://static0.therichestimages.com/wp-content/uploads/2014/02/san-sebastian.jpg'); y_correct = 54791054; assert(isequal(your_fcn_name(x),y_correct));

2   Fail
x=imread('http://grxworkshop.com/wp-content/uploads/2013/11/223-126-guggenheim-large.jpg'); y_correct=120866847; assert(isequal(your_fcn_name(x),y_correct));

Array dimensions must match for binary array op. Error in your_fcn_name (line 2) if x == imread('http://static0.therichestimages.com/wp-content/uploads/2014/02/san-sebastian.jpg') Error in Test2 (line 3) assert(isequal(your_fcn_name(x),y_correct));

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!