Assessing RGB Color Reliability via Simultaneous Comparison with Hyperspectral Data on Pantone® Fabrics
Cindy Lorena Gómez-Heredia, Jose David Ardila-Useda, Andrés Felipe Cerón-Molina, Jhonny Osorio-Gallego, Jorge Andrés Ramírez-Rincón

TL;DR
This study compares RGB and hyperspectral imaging on fabric samples to determine when RGB can reliably capture color data.
Contribution
The paper introduces a method to assess RGB color reliability by comparing it with hyperspectral data across multiple chromatic properties.
Findings
RGB images show good correlation with hyperspectral data for bright, unsaturated colors (L* > 50).
Absolute color differences exceed 5.5 units for red-yellow-green samples and up to 9.0 units for blue and purple tones.
Relative color differences fall below 3.0 units for all lightness values, indicating practical equivalence.
Abstract
Accurate color property measurements are critical for advancing artificial vision in real-time industrial applications. RGB imaging remains highly applicable and widely used due to its practicality, accessibility, and high spatial resolution. However, significant uncertainties in extracting chromatic information highlight the need to define when conventional digital images can reliably provide accurate color data. This work simultaneously compares six chromatic properties across 700 Pantone® TCX fabric samples, using optical data acquired simultaneously from both hyperspectral (HSI) and digital (RGB) cameras. The results indicate that the accurate interpretation of optical information from RGB (sRGB and REC2020) images is significantly influenced by lightness (L*) values. Samples with bright and unsaturated colors (L*> 50) reach ratio-to-performance-deviation (RPD) values above 2.5 for…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5- —Fundación Universidad de América
- —Pontificia Universidad Javeriana
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsColor Science and Applications · Industrial Vision Systems and Defect Detection · Cultural Heritage Materials Analysis
1. Introduction
Color appearance is a primary sensory attribute commonly linked to the quality, purity, and chemical composition of an object. Rather than representing intrinsic properties of a sample, color reflects the visual response arising from its optical characteristics interacting with an illumination source [1,2,3,4]. Important processes in industries such as automotive, textile, food, pharmaceutical, cosmetic, and packaging require thorough color inspection for tasks such as painting matching, fabric dyeing, garment color consistency, ensuring food and beverage quality, medication identification and quality, hair dye formulation, makeup consistency, and packaging design [5,6]. These processes are crucial for enhancing product appeal, preserving brand consistency, and ensuring consumer satisfaction. However, color evaluation has traditionally relied on visual inspection by trained personnel, whose assessments may vary due to factors such as lighting conditions, individual perceptual differences, and visual fatigue—introducing inherent ambiguities and inconsistencies [7,8].
In recent decades, advances in artificial and computer vision driven by image/video processing technologies and sophisticated algorithms, have enabled automated identification, classification, and real-time assessment in industries such as pharmaceuticals [9,10], food [11,12], and textiles [13]. For agriculture, Rodríguez-Pulido et al. integrated color and NIR spectral data for simultaneous pixel- and object-level evaluation of grape and seed samples. Similarly, machine vision applied to strawberries combined shape, size, and color analysis through line drawing, K-means clustering, and Multi-attribute Decision Making Theory, achieving color accuracy of 88.8%, shape classification above 90%, and size error detection of 5% within three seconds [14]. In textiles, Çelik et al. designed a fabric inspection system using a feedforward neural network with accuracies of 93.4% (defect detection) and 96.3% (classification) [15]. Later, Dlamini et al. developed a system combining image acquisition hardware with YOLOv4-based processing, achieving 95.3% precision at 34 fps [16].
Recently, hyperspectral imaging (HSI) has emerged as a cutting-edge tool in production lines, medical diagnostics, precision agriculture [17,18,19], and packaging [20], replacing traditional methods for evaluating sensory/color and physicochemical properties. Unlike point spectrometers or colorimeters, HSI simultaneously captures high spatial (millions of pixels) and spectral (numerous bands) information, proving valuable both industrially and scientifically [21]. However, its large scale or even laboratory use is limited by high equipment costs and the expertise required for acquisition, processing, and analysis [22,23,24]. Additionally, both spectroscopy and HSI generate vast datasets across full wavelength ranges that require careful preprocessing before modeling [25,26]. In contrast, RGB imaging, using simple digital cameras with color filters to capture three spectral bands, remains preferable where analysis areas are limited, high spatial resolution and short shutter times are needed, or conditions challenge instrument durability [27].
Although RGB data provides spectral information from only three broad bands, accurate classification can be achieved by leveraging morphological and spatial features [28]. A review in Ref. [29] compiles studies on spectroscopy, colorimeters, and hyperspectral imaging combined with Machine Learning for rapid and non-destructive crop weed discrimination. Conventional spectroscopy delivers extensive VIS/IR data strongly correlated with plant species, though optimal ranges depend on crop and weed characteristics. Hyperspectral imaging shows high potential for real-time identification but requires optimized input variable selection. In contrast, RGB imaging, despite its limited spectral resolution, has proven highly effective for plant classification. Recent efforts focus on training Neural Networks to expand RGB data into more than 50 optical bands, with promising results, though their applicability remains dependent on specific training, testing, and experimental datasets [30,31,32].
In the visible range (380–780 nm), RGB imaging enables color contrast generation through channel intensity changes, facilitating chromatic variation estimation, mainly via lightness, with applications in agriculture and healthcare [33,34,35,36]. This approach remains widely used, even with higher resolution images, as it is simple, reliable, and requires no advanced processing skills [37,38]. However, precise and absolute color calculations rely on spectrometers or hyperspectral cameras, which accurately determine CIE- coordinates [39]. For instance, Lasarte et al. enhanced RGB-CCD measurements with chromatic filters, achieving over 96% color reproduction accuracy and improved appearance parameter predictions using Hunt’94 or CIECAM02 models compared to CIE- [40]. Similarly, hyperspectral imaging outperformed RGB (95.83% vs. 66.2% accuracy) in discriminating apple maturity under different storage conditions [41]. Nonetheless, RGB imaging struggles to match HSI precision due to the non-uniformity of the visible spectrum and color representation variability to each RGB model (sRGB, Adobe RGB, ProPhoto RGB, REC2020, etc.) [42,43]. Consequently, defining the conditions under which RGB images can reliably reproduce chromatic properties is essential to expand machine vision applications in color-sensitive fields.
This work presents a comprehensive and simultaneous comparison of six chromatic properties— (lightness), , (chroma), (hue), and (saturation)—across 700 Pantone^®^ TCX fabric samples, using optical information captured from both hyperspectral and digital images. The experimental setup involved capturing HSI and RGB images of the fabric samples under uniform illumination conditions. A custom Python algorithm was developed to automatically normalize the images relative to a white reference, isolate each sample, extract its optical data, convert it to the CIE- * * * color space, and conduct a detailed comparison between the two imaging modalities. This methodological framework enabled a robust and scalable evaluation of chromatic fidelity across a large and diverse dataset. The results offer valuable insights into the conditions under which RGB images in the sRGB and REC2020 representations (different color gamut) can serve as a reliable alternative to hyperspectral imaging for accurate color characterization, highlighting the practical potential of RGB systems in applications where hyperspectral imaging may not be feasible.
2. Materials and Methods
2.1. Experimental Setup
HSI and RGB images were simultaneously acquired under natural sun lighting on a clear day around noon with oblique incidence to ensure uniform and stable illumination over the area of analysis. The experimental setup included two cameras (HSI and RGB) aligned frontally at a fixed height of 45 cm above the samples. A diffuser surface was employed to homogenize the illumination, effectively minimizing shadows and saturation artifacts (see Figure 1a). As white reference, two Spectralon targets were placed along the longitudinal and transverse directions to verify the stability and homogeneity of spectral power distribution (SPD) in each image (Figure 1b), thereby reducing errors in both HSI and RGB data during capturing (30 s for HSI and 1/60 s for RGB) [44]. The SPD variations measured in each image were below 3% (Figure 1c) which was considered sufficiently homogenous for the 17 × 27 cm^2^ scene analyzed in this work. For the hyperspectral camera, normalization was performed automatically using the “simultaneous reference mode”, whereas for the RGB images, it was applied during the computational processing stage. The hyperspectral camera was operated with an integration time of 3 ms. RGB images were acquired in PRO mode, with an ISO setting of 6400 and autofocus enable.
2.1.1. Hyperspectral and Digital Cameras
Hyperspectral images were acquired using the Specim IQ handheld camera, featuring a resolution of 512 × 512 pixels and 204 spectral bands within the 397 to 1003 nm range (±2.97 nm). The camera utilizes an NVIDIA Tegra K1 processor (SPECIM, Spectral Imaging Ltd, Oulu, Finland) with CMOS technology and a 5 Mpx viewfinder, employing an optical motion engine in a pushbroom configuration for image generation [45]. Conventional digital RGB images were captured using a Samsung S20 mobile phone with a 16-megapixel CMOS camera (3024 × 4032 resolution). Images were saved in RAW format to retain uncompressed and unprocessed data to be subsequently displayed in sRGB and REC2020 formats [46], which cover the 35% and 72% of visible color space, respectively [43,47].
2.1.2. Pantone TCX
To compare the color properties derived from HSI and RGB images, 700 fabric samples from the Pantone^®^ Fashion, Home + Interiors Cotton Planner—an industry-standard reference in the textile sector—were used. Twenty pages, each containing 35 samples, were selected to represent a broad range of hues across the chromatic circle [48], as shown in Figure S1 [49,50,51] of the Supplementary Materials. The optical data from the TCX fabrics were converted to the CIE- * * * color space using a standard 2° observer and D65 illuminant.
2.2. Computational Process
The optical information contained in both the hyperspectral fingerprint and RGB values must be analyzed at the pixel level. To facilitate this process, a Python-based tool was developed to automatically normalize, read, process, segment, and compute the chromatic properties of each sample. Figure 2 presents a flowchart illustrating the algorithmic steps used to convert the images into the CIE- * * * color space.
2.2.1. Image Reading
The algorithm employs two parallel processing lines that merge during the comparison of the results. The initial step involves reading the images using the libraries Spectral (HSI) and OpenCV (RGB). The images are stored as 3D hypercubes with dimensions for HSI and for RGB, corresponding to the number of rows ( ), columns ( ) and spectral bands contained [52].
2.2.2. Processing
The hypercubes are “unfolded” using the Numpy library into 2D arrays of dimension and , facilitating the matrix operations for transformation into CIE- * * * color space. The hyperspectral data is limited to the 400–780 nm range (130 bands), within which the color properties are calculated [53,54,55]. The standard deviation of the optical data across pixels is used to identify and exclude the white reference and background from the analysis [56]. For RGB images, the white reference coordinates are similarly employed to normalize and scale the data from 0 to 1, a necessary step for the application of the XYZ conversion matrices [57,58].
2.2.3. Segmentation
The segmentation of the 35 samples in each image was performed using the Segment Anything Model (SAM) via the Segment Anything library [59]. A total of 700 samples were evaluated; however, they were confined within 20 structured images, each containing 35 objects arranged in a fixed grid (columns 1–5 and rows 1–7, see Figure 2). This deterministic layout enabled systematic indexing and direct correspondence between RGB and HSI images. In this controlled setup, segmentation accuracy was visually verified, and no ambiguities such as partial boundaries, multiple segment assignments, or confusion with the background were observed, which implies confidence in the segmentation results. For HSI images, a dimensional reduction is required using the bands of red (600 nm), green (550 nm), and blue (452 nm), preserving the spectral fingerprint of each sample. This process generates N matrices (masks) associated with the number of identified objects. In this study, 2100 matrices were obtained (35 fabrics × 20 photos × 3 types: HSI, sRGB, REC2020) with dimensions for HSI and for RGB. Note , as each object occupies a small fraction of the total image area.
2.2.4. CIE-Lab* Transformation
The matrices generated are systematically numbered and organized to facilitate comparisons. This data is then transformed into coordinates by matrix operations using Equation (S5) (HSI) [60,61,62,63,64,65,66], Equation (S9) (RGB) [47,67,68,69] and therefore calculated the * * * values using Equations (S6)–(S8). The chromatic information reported in the results section corresponds to the average over 550 pixels for HSI and 23 k pixels for RGB, obtaining surface uniformities higher to 95% for all cases, which indicates the homogeneity of samples analyzed. The algorithm then separates and organizes the information into four quadrants (Q) based on their position in the CIE- * * * color space, mainly using the Hue ( ) parameter: Q1 (0–90°), Q2 (90–180°), Q3 (180–270°), and Q4 (270–360°), as illustrated in the chromatic circle (Figure S1) of the Supplementary Materials.
2.2.5. HSI–RGB Color Comparison
Color differences have been reported as a fundamental parameter in both academic research and industrial applications of chromatic inspection. It is particularly useful for establishing perceptual similarities through direct comparison of a sample’s color properties with respect to a reference, as well as for evaluating the equivalence between different colorimetric instruments [70,71]. Several mathematical definitions for the color difference calculation are currently used [72], which mainly differ in the number of parameters involved. The simplest definition employs the Euclidean distance between two points in CIE- * * * space (Equation (S4)). However, due to the strong dependence of hue and lightness with the visual perception of color, alternative definitions such as CIE-2000 ( ) have been deemed for assessing these differences [73]. Detailed descriptions of each parameter involved in Equation (1) are available in Ref. [74].
In our work, the CIE-2000 color difference was used to analyze the equivalence of the chromatic information obtained from HSI and RGB images in both representations (sRGB and REC2020) through two comparative metrics [75,76]:
- Absolute color difference ( ): Calculated by directly comparing the color properties obtained for each sample from HSI and RGB images. This quantifies the accuracy of RGB data to reproduce a color perception similar to that of HSI.
- Relative color difference ( ): Calculated by selecting one sample as a reference within each imagen and computing the color differences in the remaining 34 samples. This process was performed automatically with the Phyton tool, using as references the first sample in the upper-left corner on HSI and RGB images independently (see Figure 2). The results were subsequently compared to quantify the reliability of RGB data in reproducing color differences between samples within the same image.
Although a unique threshold for perceptual similarity in a color dataset has not been established, recent academic and industrial studies indicate that color differences below 3 units ( < 3) are generally sufficient to consider two or more processes chromatically equivalent [77,78,79,80].
3. Results
3.1. Optical Characterization
Figure 3 shows the reflectance spectra in the visible range of 16 Pantone^®^ fabric samples whose chromatic properties are representative of CIE- * * * color space. Moreover, the typical spectral sensibility of conventional cameras for R (red), G (green) and B (blue) bands are included (vertical dashed lines). For the red-yellow group (Figure 3a), a notably higher reflectance is observed in the red region (>600 nm) compared to the blue one (<500 nm); therefore, their chromatic properties are expected to be in the first quadrant (Q1) of chromatic circle. In the case of samples 5 to 8 (Figure 3b), although the reflectance is also high in the red region, there is also a significant increase (>50%) of the signal in the green band, therefore these colors will be a combination of yellow and green tones (Q2). The spectra of samples 9 and 12 (Figure 3c—Q3), as well of 13 and 16 (Figure 3d—Q4) present similar characteristics in the blue region but mainly differ in the signal intensity in the green and bands. Likewise, the comparison between samples 3–4 and 5–6, exhibits comparable spectral signatures with different intensities, resulting in lighter or darker colors associated with increases or decreases in reflectance signals. This latter can be observed in curves 10–12 and 14–16 where the colors tend to be darker (low lightness) because a wide amount of visible light is absorbed. These findings are further supported by the color representation of the 16 samples in both the sRGB and REC2020, as shown in Table S1 of the Supplementary Materials.
3.2. Color Properties from Hyperspectral Images (HSI)
The color properties of the 700 samples analyzed in this study were derived from the examination of HSI and RGB images using the computational tool and methodology outlined in Section 2.2. The chromatic information obtained from the HSI is summarized through the statistical analysis presented in Table 1. It is worth noting that each quadrant includes samples with lightness ( *) values ranging from 20 to 95, encompassing both light and dark color appearances. Similarly, the a and b coordinates, along with the derived chroma ( ) and saturation (S) values, span from very low intensities (<5) to values approaching the limits of the visible color space (>80). The hue ( ) values also cover the entire chromatic circle, ranging from 0° in Q1 to 360° in Q4. Furthermore, the HSI-derived chromatic properties were compared with the reference values provided by the manufacturer for all 700 samples, as reported online [81]. Differences ( ) below 3.0 were observed for each property across all quadrants, highlighting the reliability of the HSI data and, subsequently, the accuracy of the color properties calculated from the hyperspectral images. This comprehensive coverage underscores the dataset’s robust statistical significance in characterizing chromatic properties within the CIE- * * * color space.
The mean and median values of and across all groups are below 70 and 35, respectively, indicating a general tendency toward darker colors. This may hinder accurate interpretation of optical information from RGB images, particularly in Q3, due to (i) the limited range of colors represented in each color space and (ii) the expansion of the visible color gamut as decreases [82,83].
3.3. Comparative Analysis of Color Properties from HSI and RGB Images
Figure 4 presents scatter plots for the *, *, *, , , and color properties, comparing the values obtained from RGB images in both sRGB and REC2020 color spaces with reference values generated from the HSI data. A dashed blue line in each plot represents the perfect correlation between HSI and RGB. The lightness (in Figure 4a) shows a better HSI-RGB agreement for values higher than 60 units. For lower values, * exhibits an underestimation related to the RGB camera’s capability to capture and interpret optical information in conditions of low reflectance/transmittance, which in turn affects the calculation of the stimulus. In consequence, the reproduction of * and * is seriously compromised by the most intense colors, where a noticeable increase in dispersion is observed for values * < 0 and * > 0, specifically for chromatic coordinates located in Q2 and Q3 (Figure 4b,c). Eventually, the chroma (Figure 4d) also exhibits an overestimation for > 40 in colors with relative high purity. The best HSI-RGB relationship is found in the region < 30, where * and * tend to zero with * close to white reference.
On the other hand, the hue demonstrates excellent reproducibility between optical and digital information (Figure 4e). Therefore, reliable chromatic contrasts for the identification and classification of colors within a set of samples can be achieved. The regions of major dispersion of are observed in both cases when the quadrant changes due to a decrease to zero and when * and/or * change signs. This significantly affects the tangent function used to calculate , producing different tones than expected and even changing the color space quadrant. The best reproduction occurs in Q2, where the samples have the highest * values and the lowest S values, resulting in a better HSI-RGB correlation. Conversely, in the range between 180° and 270° (Q3), where * and * values—and consequently —exhibit the greatest uncertainty, a poor correlation is observed.
Saturation is the color property with the lowest HSI-RGB reproducibility (Figure 4f) and shows the highest difference between sRGB and REC2020 representations. In the first case, values of up to 90% associated with high purity color samples have been obtained. However, this prediction is incorrect when considering the reference dataset information in Table 1, where the maximum value of S obtained is lower than 80%. “When the color saturation in the digital representation approaches 100%, at least one of the RGB channels tends toward zero. As a result, the xy chromaticity coordinates shift toward the boundary of the color space (see Figure S2 in the Supplementary Materials), thereby limiting the accuracy of color representation. The greatest disparities in saturation are found in Q4 (corresponding to the line of purples in the visible color space), where the colors are primarily combinations of the red and blue channels—conditions that, as previously mentioned, hinder accurate digital representation.
It is worth noting that although REC2020 encompasses approximately 72% of the visible color space and it is expected to provide predictions closer to those from HSI, differences in saturation (S) of up to 30 units are still observed. These discrepancies can be attributed to the optical information obtained from RGB camera, which is strongly conditioned by the spectral response of the Bayer array filters (RGGB) in the cellphone, thereby limiting the information captured in each channel [84,85]. Although the RGB data extracted from RAW files yields sRGB and REC2020 values that appear quite different (Table S1), the corresponding conversion matrices sRGB → XYZ and REC2020 → XYZ (Equation (S9)) produce color data with similar chromaticity coordinates ( ) i.e., similar perceptual colors as shown in Figure 4. This outcome suggests that the rescaling process from RAW to REC2020 is essentially artificial and does not expand the effective capacity (gamut) of the sensor to generate more accurate images. Consequently, from the outset, the range of color information that can reproduce, particularly in saturated and pure colors, is inherently limited [86,87].
4. Discussion
The scatter plots presented in Figure 4 offer a powerful tool to provide a comprehensive view of when chromatic properties can be successfully reproduced through RGB information, as well as the specific value ranges where this reproducibility holds true. However, the proximity of color properties in both representations (sRGB and REC2020), considering the differences in color space, can lead to ambiguous interpretations. To evaluate the accuracy of the proposed method in reproducing HSI chromatic information through the sRGB and REC2020 representations, the ratio-to-performance deviation (RPD) is calculated. This metric quantifies the deviation between predicted (RGB) and actual (HSI) values by comparing the Standard Deviation (SD) of actual data with the Root Mean Square Error (RMSE) of predicted values. Based on the RPD results, the relationship between dataset can be classified as Excellent (RPD 3), Good (2.5 RPD 3.0), Approximate (2.0 RPD 2.5) or Unsatisfactory (RPD 2.0) [88,89]. Table 2 presents the evaluation of how accurately each color property is represented across different quadrants and lightness intervals within each RGB representation.
Lightness is the parameter that gives the better reliability, especially for quadrants Q1 and Q2, where the highest values of are found in the dataset. In contrast, dark and highly saturated colors exhibit RPD values below 1.0, highlighting the strong dependence of RGB information on sample lightness. The uncertainty in and values become more pronounced for 50, and this effect is amplified in the chroma ( ) parameter due to their quadratic relationship (Equation (S1)). This lightness dependence also affects and , with more accurate RGB-based predictions observed when is greater than 50. Generally, for bright and unsaturated colors ( 50), sRGB and REC2020 predictions show a remarkable agreement related to HSI, with RDPs 2.5 for at least 4 of the 6 chromatic properties assessed (Classified as Good and Excellent). This consistency between both RGB representations indicates that the matrices defined for each CIE- transformation (Equation (S9)) enable the recovery of similar color data from any RGB image.
Color Differences Between HSI and RGB Images
Considering that the number of perceivable colors in the visible space decreases as the Y-stimulus (luminance) increases [82,83], the proportion of colors encompassed by the RGB representations become comparatively higher. Therefore, it is expected that as the chromatic properties of a sample approach to the reference white point (Y → 1), its digital reproduction will more closely align with the HSI image information. Figure 5a presents the scatter plot of the -stimulus, derived from HSI data, for each sample alongside the corresponding HSI-RGB absolute color difference defined in Section 2.2.5 ( ). A general trend indicates that decreases as Y increases. For Y > 0.7 (i.e., * > 87), when the chromatic coordinates (xyY) of the sample are near the white point, ∆E values below 3.0 are obtained. In this zone ( > 0.7), the gamut generated by each RGB representation encompasses several samples in the set, ensuring a highly reliable color interpretation. This is supported by the chromaticity diagrams in Figure 5b, where the coordinates calculated using Equation (S10) for six samples with varying Y values are displayed. Although all colors seem to be contained within the sRGB gamut, the volume defined by the xyY coordinates in Figure 5c reveals that those with the lowest Y values fall outside this volume, indicating that their properties cannot be accurately interpreted using RGB information.
The average values of the absolute color differences , grouped by quadrants and limit values of * (directly related to ) are presented in Table 3. In all quadrants, particularly in Q3, values exceed 5.0 units, indicating a weak correlation between HSI and RGB data. For darker colors ( < 50), these differences surpass 7.4 units in both RGB representations. In contrast, better reproducibility is observed when * > 50, leading to a noticeable improvement in predicting < 5.0 for lighter colors ( * > 75). Although such color differences are accepted by many authors, these values remain still too high to establish a reliable correspondence between HSI and RGB [72,90,91,92].
Finally, Table 4 shows the analysis of the relative color difference (as defined in Section 2.2.5) for the HSI and RGB images, conducted using the Two One-Sided Test. This statistical method evaluates the equivalence of two approaches in reproducing similar results within a predefined tolerance.
The average values of the relative color differences for hyperspectral ( ) and RGB ( ) images decrease notably as the considered values increase. This is because the reference sample used to compute the relative differences in each case corresponds to the one with the highest lightness (first sample in the upper left corner- see Figure 2). A similar effect is observed when comparing the relative color differences obtained from HSI and RGB for each sample ( ), with values below 1.0, indicating an excellent reproduction of color variations for samples of > 75. Despite the high dispersion of the data in each interval ( ), the 95% confidence interval (IC 95%) comparing HSI and RGB indicates that most samples fall within a relative color difference below 3.0 units < 50, 2.0 units for > 50 and even lower to 1.0 units for > 75. Although the TOST results show data with statistically significant differences under the null hypothesis (p 0.05), with the size effect ranging from medium to small [93,94], the relative color differences found comparing HSI and RGB remain within the 3.0 units tolerance interval, supporting the practical equivalence of both methodologies for any lightness value.
These results indicate that, unlike absolute color differences, a relative color comparison does not require RGB to encompass the entire visible color space. Instead, knowing the coordinates of a specific reference point (sample reference), within the restricted space is sufficient to reliably quantify distances (color differences) to other points. In this way, the spectral bias inherent to RGB images is effectively canceled when computing distances between two points, making the resulting information equivalent to that obtained from hyperspectral data.
5. Conclusions
Six chromatic properties defined in the CIE- space were calculated and compared using HSI and RGB images in both sRGB and REC2020 representations. A Python algorithm was developed to process, individualize and analyze data from 700 Pantone^®^ fabric samples, aiming to establish a correlation between the color information obtained from each type of image. The results indicate that the accurate interpretation of the optical information from RGB images is strongly influenced by the lightness ( *) values due to the changes in the CIE- color space as it approaches the white reference. For samples with * values greater than 50 (lighter colors), RPD values above 2.5 were found in four of the considered properties ( ), indicating a good correlation between HSI and RGB data. The absolute color differences ( ) obtained from the direct comparison of HSI and RGB data exceeded 5.0 units for samples in the red-yellow-green quadrants (Q1 and Q2), rising to 9.0 for blues and purples (Q3 and Q4) in both sRGB and REC2020 representations. These discrepancies were attributed to the optical information captured by the RGB camera, which is strongly conditioned by the spectral response of the Bayer array filters (RGGB) in the cellphone, thereby limiting accuracy of the information in each channel. These differences decreased significantly in the relative color differences analysis ( ), which uses a reference sample for each HSI and RGB image. In this case, values below 3.0 units were achieved across the entire color space, reaching as low as 1.0 unit for light-colored samples ( > 75). Statistical analysis using the Two One-Sided Test (TOST) indicate that, although HSI and RGB data show statistically significant differences under the null hypothesis (p 0.05), the relative differences between them remain within the 3.0 units tolerance interval commonly accepted in most academic industrial applications. Although RGB shows absolute limitations (with high values in red, blue, and purple tones), the use of relative color differences ) combined with statistical validation makes it a reliable and practical tool for comparative analyses. This approach results in a robust and validated protocol that can partially replace more expensive HSI systems in applications where absolute spectral reproduction is not essential, but relative color consistency is critical. Such capability is highly relevant for industries where reliable and cost-effective color assessment is required, including textiles and fashion (quality control of dyes and fabrics), printing and packaging (color matching and consistency across batches), food and beverages (monitoring freshness and product appearance), and digital imaging and display technologies (standardization of color rendering).
This work provides a solid first step toward RGB-based segmentation for fabric color analysis, offering valuable insights into its potential and limitations. Still, methodological extensions—such as incorporating multiple RGB devices with different Bayer filters, testing under varied illumination sources, and applying the approach to different material types—could significantly strengthen its robustness and broaden its applicability in industrial contexts.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Huang M. Liu H. Cui G. Luo M.R. Testing Uniform Colour Spaces and Colour-difference Formulae Using Printed Samples Color Res. Appl.20123732633510.1002/col.20689 · doi ↗
- 2Montag E.D. Wilber D.C. A Comparison of Constant Stimuli and Gray-scale Methods of Color Difference Scaling Color Res. Appl.200328364410.1002/col.10112 · doi ↗
- 3Vernet S. Dinet E. Trémeau A. Colantoni P. Experimental Protocol for Color Difference Evaluation Under Stabilized LED Light J. Imaging 202411410.3390/jimaging 1101000439852317 PMC 11765870 · doi ↗ · pubmed ↗
- 4Miller M.E. Scenes and Lighting Color in Electronic Display Systems: Advantages of Multi-Primary Displays Springer International Publishing Cham, Switzerland 20193966
- 5Ohta N. Robertson A.R. Colorimetry: Fundamentals and Applications John Wiley & Sons Hoboken, NJ, USA 2006
- 6Wu D. Sun D.-W. Colour Measurements by Computer Vision for Food Quality Control—A Review Trends Food Sci. Technol.20132952010.1016/j.tifs.2012.08.004 · doi ↗
- 7Mak K.L. Peng P. Yiu K.F.C. Fabric Defect Detection Using Morphological Filters Image Vis. Comput.2009271585159210.1016/j.imavis.2009.03.007 · doi ↗
- 8Tiffin J. Kuhn H.S. Color Discrimination in Industry Arch. Ophthalmol.19422885185910.1001/archopht.1942.00880110099009 · doi ↗
