Remove Object from Image

Is there another method to remove the shuttle from the shuttle.tif image and make the support structure black with a white background? I have managed to remove the shuttle using the ~bwareaopen command. However, I am left with a image that no longer looks like the support structure. Any help would be greatly appreciated.
Original shuttle.tif http://goo.gl/Y7HRt Modified shuttle.tif http://goo.gl/ZCUSw

2 个评论

The first image doesn't show anything at all - no image whatsoever. The second one shows an image but it's too small to tell what's going on.
My apologies Image Analyst. I reuploaded the files and have provided the new links above in my original post.

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2013-2-10

0 个投票

What will go in place of the shuttle? Your image is extremely poor quality. Please upload higher quality images.

6 个评论

integra-t
integra-t 2013-2-10
编辑:integra-t 2013-2-10
What did you need to see in the picture? For some odd reason Google scales down my screenshot PNG file but it can be seen in its original form when 100% zoom is selected in the top left corner. Or perhaps, you would prefer downloading the file by clicking the black arrow pointing down located in the top left corner as well. My goal is to remove the shuttle from the image and leaving that area white, while making the shuttle support structure black.
Your image suffers from severe, astonishingly severe, jpeg artifacts, even when zoomed in. Why do you need to do this? Why don't you just use imfreehand() and poly2mask() to hand draw some region and fill it in with all white or all black?
This was one of the question for an assignment. When you say the image suffers, which image are you referring to? The shuttle.tif image is a commonly used Matlab file that I have seen in many lecture notes.
Compare this one: http://ipadwallpaper.net/wp-content/uploads/2011/03/space-shuttle.jpg to yours. See those huge blocks in yours. That's what I was talking about. Now, what about my suggestion - will that work?
If it were up to me, I would prefer to edit high resolution pictures. Unfortunately, this was what we were given to work with. I will try your suggested commands and will post up the results shortly. Thanks again for your help.
I've posted a demo with imfreehand() this weekend - search for it.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Function Creation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by