| 855 | } |
| 856 | |
| 857 | ConstTransformRcPtr invertTransform(const ConstTransformRcPtr & t) |
| 858 | { |
| 859 | TransformRcPtr eT = t->createEditableCopy(); |
| 860 | eT->setDirection(TRANSFORM_DIR_INVERSE); |
| 861 | return eT; |
| 862 | } |
| 863 | |
| 864 | // Return a transform in either the to_ref or from_ref direction for this color space. |
| 865 | // Return an identity matrix, if the color space has no transforms. |
no test coverage detected