フィルターのクリア

calculating the provide integral

1 回表示 (過去 30 日間)
Poorya
Poorya 2023 年 10 月 11 日
編集済み: Matt J 2023 年 10 月 11 日
hello all. I want to calculate this integral. this formula is for image registration, but for practice, I work with 1D signla.I have I1 and I2 and u(x). I1 and I2 are a 3000*1 matrices. I meshed 1d signal and divided into the 600 element. I am wondering how I should calculate this integral. thank you.
  2 件のコメント
Matt J
Matt J 2023 年 10 月 11 日
Is there any reason you are pursuing your own implementation, as opposed to using imregister()?
Walter Roberson
Walter Roberson 2023 年 10 月 11 日
When I look at that integral, it looks to me as if I1 and I2 are intended to be functions, not matrices.
If they are matrices then we have to ask whether x is a scalar or a matrix, and whether u(x) is a scalar or a matrix, so that we can tell if is an element-by-element multiplication or a matrix multiplication.

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

回答 (1 件)

Matt J
Matt J 2023 年 10 月 11 日
編集済み: Matt J 2023 年 10 月 11 日
A common approach is to discretize the integral and instead compute sum of squared differences (SSD), e.g.,
SSD=norm( interp1(x,I2,x+u,'cubic',0) -I1).^2/2

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by