#ifndef MCHAN_INV_H #define MCHAN_INV_H /* * Multichannel (>4 channel) BtoA inversion via constrained optimization. * * The rspl reverse lookup (rev.c) is hard-capped at MXRI=4 input dimensions. * For device channels > 4, we use Powell's method to find device values that * minimize deltaE to the target PCS while respecting ink limits. * * Author: LithiumCMS project * Date: 2026/11/11 * * Copyright 2026 LithiumCMS contributors * Licensed under the GNU GENERAL PUBLIC LICENSE Version 2 or later. */ #include "xicc.h" /* Multichannel BtoA inversion for devchan > 4. * Uses constrained optimization (powell) to find device values * that minimize deltaE to target PCS while respecting ink limits. * * p - The icxLuLut object with forward AtoB table * out - Returned device values [devchan] * clipd - If not NULL, return clip distance (0 = no clip) * in - Target PCS values [3] (Lab or XYZ in PCS' space) * * Returns 0 on success, 1 if clipping occurred */ int icxLuLut_mchan_inv_clut( icxLuLut *p, double *out, double *clipd, double *in ); #endif /* MCHAN_INV_H */