Originally posted by felizitation Really didn't undersand your post.
I'm posting you my preoccupations, since 1:30AM
virtual RES_C setCenter(INT32 x, INT32 y, INT32 z)
{
//if(ui_warningTemp == (1<<6 - 1))
// throw MException("ImageKernelNeighborhood::setCenter outside the image");
// pourquoi pas un RES_C ? parce qu'on a tendance ŕ ne pas tester les valeurs de retour.
if( x < 0 || x > _visible_x_size ||
y < 0 || y > _visible_y_size ||
z < 0 || z > _visible_z_size)
throw MException("ImageKernelNeighborhood::setCenter outside the image");
UINT16 ui_warningTemp = (x < _x_min) & 1;
ui_warningTemp <<= 1;
ui_warningTemp |= (x >= _x_max) & 1;
ui_warningTemp <<= 1;
ui_warningTemp |= (y < _y_min) & 1;
ui_warningTemp <<= 1;
ui_warningTemp |= (y >= _y_max) & 1;
ui_warningTemp <<= 1;
ui_warningTemp |= (z < _z_min) & 1;
ui_warningTemp <<= 1;
ui_warningTemp |= (z >= _z_max) & 1;
_x_center = x;
_y_center = y;
_z_center = z;
_off = GetOffsetFromCoords(_im, x, y, z);
//_off = x + y*_x_size + z*ui_sizeXY;
if(ui_warningTemp != ui_WarningSize)
{
ui_WarningSize = ui_warningTemp;
return handleBorder();
}
return RES_OK;
}
A great piece of joy, as you can see.
Thank you for the lesson, and go primate your hand.
I'm posting you my preoccupations, since 1:30AM
virtual RES_C setCenter(INT32 x, INT32 y, INT32 z)
{
//if(ui_warningTemp == (1<<6 - 1))
// throw MException("ImageKernelNeighborhood::setCenter outside the image");
// pourquoi pas un RES_C ? parce qu'on a tendance ŕ ne pas tester les valeurs de retour.
if( x < 0 || x > _visible_x_size ||
y < 0 || y > _visible_y_size ||
z < 0 || z > _visible_z_size)
throw MException("ImageKernelNeighborhood::setCenter outside the image");
UINT16 ui_warningTemp = (x < _x_min) & 1;
ui_warningTemp <<= 1;
ui_warningTemp |= (x >= _x_max) & 1;
ui_warningTemp <<= 1;
ui_warningTemp |= (y < _y_min) & 1;
ui_warningTemp <<= 1;
ui_warningTemp |= (y >= _y_max) & 1;
ui_warningTemp <<= 1;
ui_warningTemp |= (z < _z_min) & 1;
ui_warningTemp <<= 1;
ui_warningTemp |= (z >= _z_max) & 1;
_x_center = x;
_y_center = y;
_z_center = z;
_off = GetOffsetFromCoords(_im, x, y, z);
//_off = x + y*_x_size + z*ui_sizeXY;
if(ui_warningTemp != ui_WarningSize)
{
ui_WarningSize = ui_warningTemp;
return handleBorder();
}
return RES_OK;
}
A great piece of joy, as you can see.
Thank you for the lesson, and go primate your hand.

Leave a comment: