SaashaJoshi / piQture

piQture: A quantum machine learning library for image processing.
https://saashajoshi.github.io/piQture/
Apache License 2.0
13 stars 6 forks source link

Change `colored` argument to include number of color channels. #90

Closed SaashaJoshi closed 2 months ago

SaashaJoshi commented 2 months ago

Simply mentioning whether the QIR method supports colored images (boolean) is not satisfactory. More information is required in cases where RGB channels exist with other transparency, watermark, or alpha channels.

Different number of color channels also affects the number of lists in a pixel_vals argument. For example, for MCRQI, pixel_vals: list[list] there must be a maximum of 4 lists representing RGB-alpha channels each. Meanwhile, for other colored QIR techniques, there might only be 3 channels - RGB.