Converts color images to grayscale via three quaternion methods: magnitude (L2 norm), projection (gray-axis dot product), and sandwich product (quaternion rotation). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>