How to quantize the output?
显示 更早的评论
Hello, in gaborconvolve.m code,the output EO consists of real and imaginary components(where real part is the result of convolving with the even symmetric filter, the imaginary part is the result from convolution with the odd symmetric filter). Now, the function must be phase quantized to get output in the form of 0-1 binary matrix...How do i change the code to phase quantize the EO output....
采纳的回答
Supposing you have a routine QUANTIZE, then
output = complex( QUANTIZE(real(E0)), QUANTIZE(imag(E0)) )
13 个评论
Jyothi Alugolu
2017-4-21
编辑:Walter Roberson
2017-4-21
actually the EO consists of complex numbers of size 4 * 6..Now, i want 0-1 binary matrix from real and imaginary components of EO by phase quantization... i am sending you the screenshot regarding output EO..


Now, please tell me how to do this..
Under what conditions should it produce a binary 0? Under what conditions should it produce a binary 1 ?
Normalized iris image is transformed into a 0–1 form of binary matrix by convolving 1-D Log-Gabor filter to the normalized image(rectangular strip). Each row in the normalized iris image is considered as a 1-D signal for convolution. The function (here EO) produces real and imaginary components which are phase quantized to get IrisCode in the form of 0–1.
I think u didn't get me. Actually a rectangular strip has to be transformed into a 0-1 form of binary matrix by convolving 1-D Log-Gabor filter to the normalized image..so, i applied gaborconvolve function to rectangular strip which produces EO which consists of real and imaginary components as i have shown you by screeenshot..Now, the real and imaginary components are phase quantized in the form of 0-1 binary matrix..
Under what conditions should it produce a binary 0? Under what conditions should it produce a binary 1 ?
For example should it be binary 0 if it is in quadrant 1 or 3, and binary 1 if it is in quadrant 2 or 4?
I dont know what exactly you are talking..i am implementing a paper..In that paper, it is asked to apply phase qunatasation on complex number to get 0-1 binary matrix..
in gaborconvolve.m file,we must apply phase quantization to the output to form 0-1 binary matrix
if amplitude is close to zero then phase data is not useful, so mark off in the noise mask otherwise put it in the template mask..
i used output = complex( QUANTIZE(real(E0)), QUANTIZE(imag(E0)) ); i got the output..but i am not knowing what it is.. i am sending you the screenshots..please tell me what the output is..
<<

>>
I have not read the paper, and I am not going to bother to find a free copy of the paper and read through it. You should post examples of inputs and the desired outputs. If there are equations to determine the output from the input phase then you should post them.
Assume that the volunteers are busy people who do not have time to read the various background papers. Post the requirements in clear terms. What you have posted so far is not clear at all.
ok, i will tell you clearly... i have rectangular iris strip(normalized image) and i want this strip to be transformed into 0-1 binary matrix by convolving 1-D Log-Gabor filter to the normalized image... i used gaborconvolve.m file code and the output EO consists of 4* 6 cell size,where each size consists of 58*212 complex double values(real and imaginary components)..Now, after that the output i.e EO is phase quantized to form 0-1 binary matrix...previously you asked to which quadrant to use..i dont know all that..i just want the rectangular strip to be in0-1 bianry matrix by using 1-D log-gabor filter..
Result = cellfun( @(M) angle(M) >= 0, EO, 'uniform', 0)
thank you soo much..
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Cast and Quantize Data 的更多信息
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
