File Exchange Pick of the Week

Our best user submissions

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Two Amigos? 9

Posted by Brett Shoelson,

Last week, we bade adieu to Bob Bemis --our long-time collaborator on the Pick of the Week blog. We've had the same thumbnail image associated with this blog for a couple years now; in fact, we've affectionately referred to the picture as "the three amigos." In the short term, at least, there will be only two of us-- Brett and Jiro --writing this blog. Clearly, our thumbnail picture is not going to be appropriate moving forward.

So today, in lieu of a Pick, Jiro and I would like to issue a challenge to all of our image-processing-capable friends: using ONLY MATLAB and MathWorks tools, write a bit of code to modify the Pick of the Week image and create a "two amigos" photograph, containing only Brett and Jiro. (Bob is the one in the middle.)

We will award two prizes for this competition: one for the person whose code results in the best usable Bob-free image, and one for the person with the most creative approach to solving the problem.

Some ground rules: use only MathWorks' tools/code. MATLAB, Simulink, Toolboxes, and Blocksets are all fair game. Any code downloaded from the MATLAB Central File Exchange is fair game. Anything created using exclusively MathWorks' tool is fair game. Using Photoshop? Not allowed!

Email all entries (CODE ONLY--no images!), with the subject "Two Amigos Competition", to me at:

char(cumsum([98 16 -13 15 0 -70 69 -11 7 -10 7 7 -4 -1 -46 45 -12 19 -12 15 -8 3 -7 8 -69 53 12 -2]))

(There should be no line wrap in the preceding line.)

Enter as many times as you'd like. The deadline for submissions is midnight, Friday, October 1. Jiro and I will evaluate all entries and decide jointly who wins, and our decision will be deemed final!

Good luck, and happy MATLABbing!


Get the MATLAB code

Published with MATLAB® 7.10


Comments are closed.

9 CommentsOldest to Newest

Brett replied on : 4 of 9
Thanks, Matthew. I had the file on our FTP server, and it timed out automatically. I've re-uploaded the file, and the link is working again.
Brett replied on : 6 of 9
Jaidev, We've gotten a couple entries now. But...executive decision: go ahead and post your code. I'll continue to accept entries until I write next week's blog post. Say...Wednesday. Good luck! Brett
Igor replied on : 7 of 9
Hi! I know i late... I propose a solution which, in any case has to do with competition.Maybe it will be shorter than the others - who knows! After other attempts I finally settled on this one.My conclusions: (1) from an old friend to get rid of (even using a great MATLAB!) impossible, (2) in memory is always the "ice of separation" (a bright spot in the background), (3) life before and after parting separated by "stepping stone" (mountains in the background). Sincerely, Igor.. function three4two6cut %|... safe travels, Bob! %| (1) correlation? Steve? Help? Old photo... %| (2) reconstruction? mask? Help? Old photo? %| (3) roifill? mask? Help? Old photo? %| (4) color? red? green? white? Help? %| (5) boxbending? cut? mask? Returne? %| (6) cut?returne? %| --------------------------------------------------- clc iptsetpref('ImshowBorder','tight'); close all filename='threeamigos-800w.jpg'; I0 = imread(filename); id = im2double(I0); %| --------------------------------------------------- figure(1) imshow(id) [jx jy jz] = size(id); j1 = id(1:jx,1:jy/2-130,1:jz); j2 = id(1:jx,jy/2+90:end,1:jz); %| --------------------------------------------------- figure(2) nj = cat(2,j1,j2); njr = imresize(nj, jy/(jy-220)); imshow(njr)
Bharath replied on : 9 of 9
And what's a good way to decide the threshold for different segmentation tasks? Otsu's method performs poorly, any comments?