public unsafe void Convert( byte* input, byte* output, int offset )
{
Col3b* inputPtr = (Col3b*)input;
uint* outputPtr = (uint*)output;
Col3b inp = inputPtr[ offset ];
int xshift = 8, yshift = 16, zshift = 24, ashift = 0;
#if BIG_ENDIAN
outputPtr[ offset ] = ( (uint)( 0xFF << ashift ) ) | ( ( (uint)inp.x ) << xshift ) | ( ( (uint)inp.y ) << yshift ) | ( ( (uint)inp.z ) << zshift );
#else
outputPtr[ offset ] = ( (uint)( 0xFF << ashift ) ) | ( ( (uint)inp.x ) << zshift ) | ( ( (uint)inp.y ) << yshift ) | ( ( (uint)inp.z ) << xshift );
#endif
}
}