Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
bitdepth

Subject: bitdepth

From: suma

Date: 10 Jan, 2011 17:20:11

Message: 1 of 4

how to read 32 bit depthimage into matlab

Subject: bitdepth

From: Sean de

Date: 10 Jan, 2011 17:32:05

Message: 2 of 4

suma <user@compgroups.net/> wrote in message <OsSdnWC-6ZJWorbQnZ2dnUVZ_qmdnZ2d@giganews.com>...
> how to read 32 bit depthimage into matlab
>

help fread

Subject: bitdepth

From: Walter Roberson

Date: 10 Jan, 2011 19:10:30

Message: 3 of 4

On 11-01-10 11:20 AM, suma wrote:
> how to read 32 bit depthimage into matlab

Is it 32 bits per color component, or is it 32 bits per pixel? If it is 32
bits per pixel, then how are the bits to be divided up between R, G, and B ?


By the way, is there a particular reason you did not continue your earlier
thread "matlab related question" and respond the the questions people raised
there?

Subject: plz help me regarding voice activity detection

From: karoot RAZA

Date: 24 Feb, 2011 04:51:20

Message: 4 of 4

i m doing VAD based on zero crossing rate.i have studied papers and come to know that zero crossing rate threshold is


ZCRT=mean(noise)+5*standard deviation(noise)


how can i set value of detection?how can i implement ZCR in SIMULINK?
is there any other method?



its mfile is


function [w]=vad(x)



x=double(x);
x=x/max(abs(x));

%常数设置
framelen=256;
framelnc=100;

amp1=10;
amp2=2;
zcr1=10;
zcr2=5;

maxsilence=3;%3*10ms=30ms
minlen=15; %15*10ms=150ms
status=0;
count=0;
silence=0;


tmp1=enframe(x(1:length(x)-1),framelen,framelnc);
tmp2=enframe(x(2:length(x)),framelen,framelnc);
signs=(tmp1.*tmp2)<0;
diffs=(tmp1-tmp2)>0.02;
zcr=sum(signs.*diffs,2);

%计算短时能量
amp=sum(abs(enframe(filter([1 -0.9375],1,x),framelen,framelnc)),2)

%调整能量门限
amp1=min(amp1,max(amp)/4);
amp2=min(amp2,max(amp)/8);

%开始端点检测
x1=0;
x2=0;
for n=1:length(zcr)
goto=0;
switch status
case {0,1}
if amp(n)>amp1 %确信进入语音段
x1=max(n-count-1,1);
status=2;
silence=0;
count=count+1;
elseif amp(n)>amp2 | zcr(n)>zcr2 %可能处于语音段
status=1;
count=count+1;
else
status=0;
count=0;
end
case 2, %2=语音段
if amp(n)>amp2 | zcr(n)>zcr2 %保持在语音段
count=count+1;
else
silence=silence+1;
if silence<maxsilence
count=count+1;
elseif count<minlen
status=0;
silence=0;
count=0;
else
status=3;
end
end
case 3,
break;
end
end

count=count-silence/2;
x2=x1+count-1;
subplot(1,1,1)
plot(x)

w=x(x1*framelnc:x2*framelnc,:);
figure(2)
plot(w)

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us