LakshmiHarika commited on
Commit
347767a
·
verified ·
1 Parent(s): aaaa00a

Update pages/Data Collection.py

Browse files
Files changed (1) hide show
  1. pages/Data Collection.py +3 -5
pages/Data Collection.py CHANGED
@@ -438,7 +438,7 @@ elif st.session_state.current_page == "explore_images_video":
438
  caption="Gray Scale Color Space.",
439
  use_container_width=True)
440
 
441
- # Section: What is RGB Color Space?
442
  st.subheader("What is RGB Color Space?")
443
  st.write("""
444
  RGB color space represents an image using three primary colors: **Red**, **Green**, and **Blue**. These colors form the basis of digital images and can be combined in different intensities to create a wide range of colors.
@@ -461,11 +461,9 @@ elif st.session_state.current_page == "explore_images_video":
461
 
462
  Computers interpret RGB images as **3D arrays**:
463
  - The **width** and **height** of the 3D array correspond to the dimensions of the image.
464
- - The **depth** of the 3D array corresponds to the number of color channels, which is three in the case of RGB (Red, Green, and Blue).
465
-
466
- In an RGB image, each color channel is represented by its own **2D array**, and these three 2D arrays are stacked together to form the **3D array**. This means that an RGB image is essentially a combination of three 2D arrays: one for red, one for green, and one for blue.
467
 
468
- Altogether, these three channels work together to form a complete color image. The 3D array structure not only makes it easier for computers to process images but also allows for advanced image manipulation and analysis. This is why RGB is the most commonly used color space in digital imaging, particularly for devices that emit light, such as monitors, TVs, and cameras.
469
  """)
470
 
471
  st.image(
 
438
  caption="Gray Scale Color Space.",
439
  use_container_width=True)
440
 
441
+
442
  st.subheader("What is RGB Color Space?")
443
  st.write("""
444
  RGB color space represents an image using three primary colors: **Red**, **Green**, and **Blue**. These colors form the basis of digital images and can be combined in different intensities to create a wide range of colors.
 
461
 
462
  Computers interpret RGB images as **3D arrays**:
463
  - The **width** and **height** of the 3D array correspond to the dimensions of the image.
464
+ - The **depth** of the 3D array corresponds to the number of color channels.
 
 
465
 
466
+ Altogether, these three channels combine to form a complete color image, enabling vibrant, precise, and dynamic representations of colors in digital media.
467
  """)
468
 
469
  st.image(