what is step response and step()?

1 回表示 (過去 30 日間)
neenu jose
neenu jose 2011 年 10 月 1 日
currently iam doing 2d to 3d image conversion project..please help..thankyou.

採用された回答

Wayne King
Wayne King 2011 年 10 月 1 日
Hi Neenu, The step() you are referring to in this code is not related in any way to the step response of a system.
step() here is a System object method that basically says run the algorithm defined by the System object.
So just to concentrate on a couple lines:
hIdtc = video.ImageDataTypeConverter;
leftI3chan = step(hIdtc,imread('vrscene_right.png'))
The first line:
hIdtc = video.ImageDataTypeConverter;
constructs a image data type converter object. That object has a handle, hIdtc.
Now the line:
leftI3chan = step(hIdtc,imread('vrscene_right.png'));
says "apply the image data type converter object I have defined in video.ImageDataTypeConverter to the PNG file vrscene_right.png"
Every System object has a step method that applies the algorithm defined by the System object. so
step(hThisobject, data)
is different than,
step(hThatobject,data)
You may find it useful to read this:
Hope that helps, Wayne
  2 件のコメント
neenu jose
neenu jose 2011 年 10 月 1 日
ofcourse...thankyou..
neenu jose
neenu jose 2011 年 10 月 2 日
can you please tell what this step means..?
thisTemplateMatcher = tmats{size(template,1),size(template,2)};
% Run TemplateMatcher object.
loc = step(thisTemplateMatcher, leftI, template, roi);

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

その他の回答 (2 件)

David Young
David Young 2011 年 10 月 1 日
How does the step function relate to 2D to 3D image conversion?
  1 件のコメント
neenu jose
neenu jose 2011 年 10 月 1 日
i was looking through an existing program..can you please tel me what is the function of step in these statements..is it smthing related to image rectification??
hIdtc = video.ImageDataTypeConverter;
hCsc = video.ColorSpaceConverter('Conversion','RGB to intensity');
leftI3chan = step(hIdtc,imread('vrscene_right.png'))
leftI = step(hCsc,leftI3chan);
rightI3chan = step(hIdtc,imread('vrscene_left.png'));
rightI = step(hCsc,rightI3chan);

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


Wayne King
Wayne King 2011 年 10 月 2 日
Hi, tmats{size(template,1),size(template,2)} is a System object that is an element of a cell array. It is a template matcher System object.
Therefore,
loc = step(thisTemplateMatcher, leftI, template, roi);
implements the algorithm of that System object with the inputs specified.
See the step method reference page for that object to see the description of the input arguments:
LOC = step(H,I,T,ROI) computes the location of the best template match, LOC, in the specified region of interest, ROI. This applies when you set the OutputValue property to Best match location and the ROIInputPort property to true. The input ROI must be a four element vector, [x y width height], where the first two elements represent the [x y] coordinates of the upper-left corner of the rectangular ROI

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by