[Insight-users] Fw: Using ImportFilter and PasteImageFilter
Todd Jensen
todd.jensen at ieee.org
Thu May 6 13:28:28 EDT 2010
>You're right, I increment the pointer in order to fill it but just after the
>"for" loop, I
decrement it in order to be back at the beginning of the
>pointer. Do
you think it is still wrong ?
Oh, I didn't see that. But it is
hard to know because of the following:
/*unsigned long i, x;
float * fImage;
pixList =
[new2DViewer pixList];
for(i=0;i<[pixList count]; i++){
curPix = [pixList objectAtIndex:i];
x = height * width;
fImage = [curPix fImage];
for(int j = 0;j<height;
j++) {
for(int k=0;k<width; k++){
localBuffer[i+j*i+i*j*k] = fImage[j+j*k];
}
}
}
NSRunCriticalAlertPanel(@"CptLocalBuffer", [NSString
stringWithFormat:@"Valeur de cptLocalBuffer : %d ", cptLocalBuffer], nil,
nil, nil);
NSRunCriticalAlertPanel(@"Nombre de pixels", [NSString
stringWithFormat:@"Valeur de numberOfPixels : %d ", numberOfPixels], nil,
nil, nil);
localBuffer -= cptLocalBuffer;
The first line in this part of the code has the opening symbol for a C-style comment - does this compile as I
don't see the closing - I assumed you were attempting to comment out the pixel by pixel copy using array index values.
Todd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100506/9a599948/attachment.htm>
More information about the Insight-users
mailing list