필터 지우기
필터 지우기

How to quantize the output?

조회 수: 4 (최근 30일)
Jyothi Alugolu
Jyothi Alugolu 2017년 4월 21일
댓글: Jyothi Alugolu 2017년 4월 24일
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....

채택된 답변

Walter Roberson
Walter Roberson 2017년 4월 21일
Supposing you have a routine QUANTIZE, then
output = complex( QUANTIZE(real(E0)), QUANTIZE(imag(E0)) )
  댓글 수: 13
Walter Roberson
Walter Roberson 2017년 4월 24일
Result = cellfun( @(M) angle(M) >= 0, EO, 'uniform', 0)
Jyothi Alugolu
Jyothi Alugolu 2017년 4월 24일
thank you soo much..

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by