Cody

# Problem 2897. Image Series 3 Complementary

Solution 1159148

Submitted on 10 Apr 2017
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   Fail
A=imread('http://www.mathworks.com/matlabcentral/profiles/3374772.jpg'); A=rgb2gray(A); o=[63 63 63 63 63 63 63 63 64 64 63 63 63 63 63 63 63 63 64 64 63 63 63 63 63 63 63 63 64 64 63 63 63 63 63 63 63 63 64 64 63 63 63 63 63 63 63 63 64 64 63 63 63 63 63 63 63 63 64 64 63 63 63 63 63 63 63 63 64 64 63 63 63 63 63 63 63 63 64 64 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62 62]; assert(isequal(image_complementary(A(1:10,1:10)),o))

A = 10×10 uint8 matrix 192 192 192 192 192 192 192 192 191 191 192 192 192 192 192 192 192 192 191 191 192 192 192 192 192 192 192 192 191 191 192 192 192 192 192 192 192 192 191 191 192 192 192 192 192 192 192 192 191 191 192 192 192 192 192 192 192 192 191 191 192 192 192 192 192 192 192 192 191 191 192 192 192 192 192 192 192 192 191 191 193 193 193 193 193 193 193 193 193 193 193 193 193 193 193 193 193 193 193 193

Output argument "out" (and maybe others) not assigned during call to "image_complementary". Error in TestPoint1 (line 14) assert(isequal(image_complementary(A(1:10,1:10)),o))

2   Fail
A=imread('http://www.mathworks.com/matlabcentral/profiles/3374772.jpg'); A=rgb2gray(A); o=[62 62 62 62 62 62 62 63 63 63 63 62 62 62 62 62 62 62 62 62 62 62 63 63 63 63 63 63 63 62 62 62 62 63 63 63 63 63 63 63 62 62 62 62 64 64 64 64 64 64 64 63 63 63 63 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 64 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 66 66 66 66 66 66 66 66 66 66 66]; assert(isequal(image_complementary(A(10:20,10:20)),o))

A = 11×11 uint8 matrix 193 193 193 193 193 193 193 192 192 192 192 193 193 193 193 193 193 193 193 193 193 193 192 192 192 192 192 192 192 193 193 193 193 192 192 192 192 192 192 192 193 193 193 193 191 191 191 191 191 191 191 192 192 192 192 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 190 189 189 189 189 189 189 189 189 189 189 189

Output argument "out" (and maybe others) not assigned during call to "image_complementary". Error in TestPoint2 (line 15) assert(isequal(image_complementary(A(10:20,10:20)),o))

3   Fail
A=imread('http://www.mathworks.com/matlabcentral/profiles/3374772.jpg'); A=rgb2gray(A); o=[133 122 85 117 125 192 134 151 100 120 162 211 144 179 110 126 177 206 155 174 88 118 150 195 155 162 86 146 165 213 166 172 110 162 162 193]; assert(isequal(image_complementary(A(100:105,100:105)),o))

A = 6×6 uint8 matrix 122 133 170 138 130 63 121 104 155 135 93 44 111 76 145 129 78 49 100 81 167 137 105 60 100 93 169 109 90 42 89 83 145 93 93 62

Output argument "out" (and maybe others) not assigned during call to "image_complementary". Error in TestPoint3 (line 10) assert(isequal(image_complementary(A(100:105,100:105)),o))

### Community Treasure Hunt

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

Start Hunting!