Skip to content

Commit

Permalink
fix(palette): better docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
loiccoyle committed Jul 4, 2024
1 parent 64d3f29 commit c0770f7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion phomo/palette.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,15 @@ def equalize(self):

def match(self, other: "Palette"):
"""Match the colour distribution of the `Master` to the distribution of the
`Pool` using the Reinhard color transfer algorithm.
`Pool` using the colour transfer algorithm explained in this paper:
https://api.semanticscholar.org/CorpusID:14088925
Args:
The other `Palette` to match this `Palette`'s colour distribution to.
Returns:
A new `Palette` with it's colour distribution matched the `other` `Palette`.
"""
self_shape = self.array.shape
self_array = self.array.reshape(-1, self.array.shape[1], 3)
Expand Down

0 comments on commit c0770f7

Please sign in to comment.