- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
How to convert 3 channel to 4 channel? or 4 to 3
Thank you
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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;
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
could you please explain which part of your program shows message out of memory? Is it IPP function or other code?
Regards,
Vladimir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
please call ippiCopy C3AC4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
are you ok with this amount of mem allocated?more than256*256*4*5425

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page