Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

How to convert 3 channel to 4 channel?

syingyos
Beginner
459 Views
Hi,

How to convert 3 channel to 4 channel? or 4 to 3

Thank you

0 Kudos
4 Replies
syingyos
Beginner
459 Views
sorry , i'm new in ipp and i have more question.
% Create data set // x is image
SY=size(x,1); SX=size(x,2); y=zeros(K,K,numDim,T);
for t=1:T
irnd=ceil(rand*(SY-K+1)); jrnd=ceil(rand*(SX-K+1));
y(:,:,:,t)=x(irnd:irnd+K-1,jrnd:jrnd+K-1,:);
end;
How i createfunction like in matlab as y(:,:,:,t), when y(width,height,channels,T),,So, y is store each image by T.
i try to created like this :
Ipp8u* yDst = ippiMalloc_8u_C4( widthPixels, heightPixels*T, &stepBytes );

T = ceil(pow(

0.5,2)*(width*height/3);and my image is about 256*256, then T=5426 when i run program it show " out of memory"

Thank you

0 Kudos
Vladimir_Dudnik
Employee
459 Views
Hi,
could you please explain which part of your program shows message out of memory? Is it IPP function or other code?
Regards,
Vladimir
0 Kudos
borix
Beginner
459 Views
please call ippiCopy C3AC4
0 Kudos
borix
Beginner
459 Views
are you ok with this amount of mem allocated?more than256*256*4*5425
0 Kudos
Reply