SaashaJoshi / piQture

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

NEQR, INEQR, GQIR currently work for grayscale images only. #47

Closed SaashaJoshi closed 4 months ago

SaashaJoshi commented 6 months ago

Image representation methods, NEQR (implemented), INEQR (PR #46 ), and GQIR (to be implemented), currently support q = 8 for a grayscale color range of 2^8 = 256 (i.e., maximum color intensity = 255, range [0, 255]).

To expand implementations for binary and colored images, q value needs to account for variable values for different images.

  1. Binary image, q = 2
  2. Colored image, q = 24 (3 RGB channels of q = 8 each)
SaashaJoshi commented 6 months ago

Different representations will need to be added to the pipeline for RGB images. The above-mentioned QIR methods inherently support grayscale images only.

Currently, I believe it is better to have different implementations for grayscale and RGB images rather than making changes to the existing ones.