main
(method: str = None) → numpy.ndarray¶main
(method: str = None) → numpy.ndarray¶
The main function and high-level entry point performing the mapping. Valid methods are
hist_match
(src: numpy.ndarray = None, ref: numpy.ndarray = None) → numpy.ndarray¶hist_match
(src: numpy.ndarray = None, ref: numpy.ndarray = None) → numpy.ndarray¶
This function conducts channel-wise histogram matching which is invariant of image resolutions, but requires the same number of color channels in both images.
mkl_solver
(cov_r: numpy.ndarray, cov_z: numpy.ndarray)¶mkl_solver
(cov_r: numpy.ndarray, cov_z: numpy.ndarray)¶
This function computes the transfer matrix based on the Monge-Kantorovich linearization.
T
+transfer_mat
np.ndarray
@@ -175,15 +144,15 @@transfer
(src: numpy.ndarray = None, ref: numpy.ndarray = None, fun: function = None) → numpy.ndarray¶transfer
(src: numpy.ndarray = None, ref: numpy.ndarray = None, fun: function = None) → numpy.ndarray¶
Transfer function to map colors based on for Multi-Variate Gaussian Distributions (MVGDs).
src (ndarray
) – Source image that requires transfer
ref (ndarray
) – Palette image which serves as reference
src (ndarray
) – Source image that requires transfer
ref (ndarray
) – Palette image which serves as reference
fun – optional argument to pass a transfer function to solve for covariance matrices
t_r (ndarray
) – Resulting image after the mapping
t_r (ndarray
) – Resulting image after the mapping