Fitting random areas to a rectangular area

1 view (last 30 days)
Hi everyone, I have a problem to solve.. I have random areas, like side view of a rock, I need to fit these areas to a bigger one. It must be perfect fitting(minimum space areas). Can I do it with a matlab code? Thanks for any help! Mücahit
  1 Comment
John D'Errico
John D'Errico on 11 Dec 2014
Yes. Of course it CAN do so. You need to write code for that to happen, or perhaps use an existing tool to do so. Since you have provided no information about what you have, in terms of what form it is in, there is no way to even try to help.
Do you have an image? A picture of something? Do you have data in some form that delineates the region?
So essentially, you have told us nothing useful, except a vague goal as to what you want to do. The answer is therefore, yes, MATLAB can do it.

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 11 Dec 2014
That seems like it would be a very important thing to do for web search engines. Do you like the way Bing and Google do it? They scale the images to the same height and put them in rows. Whether that is the optimal way to do it if you knew in advance the dimensions of all the images, I don't know, but it works for them. Is scaling your images something you can live with? If so, this method is pretty straightforward. If they're files, then you could even use the montage() function in the Image Processing Toolbox . If you have to do it without scaling any of the images, then it seems to be a harder, but more interesting, problem in optimization. Perhaps John or Roger or someone could help with that but it's beyond me.

More Answers (0)

Categories

Find more on Problem-Based Optimization Setup in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!