Help regarding optimization tool box for image processing?

Hello I have two images a and b, where b is a rotated and translated image of a. Using Sum of Squared Difference method, I have to find the minimization function using optimization tool box by taking 8 by 8 box and running iterations. How do I go about it?

5 件のコメント

Matt J
Matt J 2014 年 10 月 9 日
Write down the function you want to minimize in equation form. Then we can offer advice about how to code it.
Emmanuel
Emmanuel 2014 年 10 月 11 日
編集済み: Emmanuel 2014 年 10 月 11 日
Hi! Yeah sure ! Thank you!
cost function = Summation [f(x) - g'(x))^2]
g' is the warped image of f and x is the pixel point. I have to select 8x8 block of pixels, optimize the cost function for n number of iterations.
Can you guide me as to how to code this in optimization toolbox?
Matt J
Matt J 2014 年 10 月 12 日
So each 8x8 block must have its own distinct warp parameters? What it the form of the warping? Elastic, affine, rigid?
Image Analyst
Image Analyst 2014 年 10 月 12 日
Please post your two images so we don't have to guess, and can give advice faster .
Emmanuel
Emmanuel 2014 年 10 月 13 日
The warping consits of translation and rotation .
The original picture is :
The warped picture is:

サインインしてコメントする。

 採用された回答

Image Analyst
Image Analyst 2014 年 10 月 9 日

2 投票

Why not just us imregister() which is in the Image Processing Toolbox?

5 件のコメント

Emmanuel
Emmanuel 2014 年 10 月 9 日
Yeah! But, I must implement it using optimization tool box. Can you please help me with that?
Image Analyst
Image Analyst 2014 年 10 月 9 日
No. I'm sorry but I don't have that toolbox.
Image Analyst
Image Analyst 2014 年 10 月 13 日
See http://www.mathworks.com/help/vision/examples/find-image-rotation-and-scale-using-automated-feature-matching.html, though your example is pretty substantially different so I don't know how well it would work.
Sean de Wolski
Sean de Wolski 2014 年 10 月 13 日
Sure, you can frame it as an optimization problem where you minimize the error of the registered images but that's like using a crowbar to tear down a house. It's possible, but it's going to be a lot more work than using a bull dozer.
Emmanuel
Emmanuel 2014 年 10 月 15 日
@Image Analyst Thanks a lot !!!!!!! It works!
@Sean de Wolski Yeah you are right! I am new to Image proc and yet to learn stuffs! Thanks a lot

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeComputer Vision Toolbox についてさらに検索

質問済み:

2014 年 10 月 9 日

コメント済み:

2014 年 10 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by