Harika22 commited on
Commit
2a4a68b
·
verified ·
1 Parent(s): 3f445a6

Update pages/7_Unstructured_data.py

Browse files
Files changed (1) hide show
  1. pages/7_Unstructured_data.py +15 -3
pages/7_Unstructured_data.py CHANGED
@@ -249,9 +249,6 @@ if file_type == "IMAGE":
249
 
250
  By following these steps, you can perform common image operations
251
  """, unsafe_allow_html=True)
252
-
253
-
254
-
255
 
256
 
257
  elif data_type1 == "Color Space":
@@ -331,5 +328,20 @@ if file_type == "IMAGE":
331
  - **Grayscale to RGB**: `cv2.COLOR_GRAY2RGB` converts a grayscale image back to a 3-channel RGB image
332
  """)
333
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
334
 
335
 
 
249
 
250
  By following these steps, you can perform common image operations
251
  """, unsafe_allow_html=True)
 
 
 
252
 
253
 
254
  elif data_type1 == "Color Space":
 
328
  - **Grayscale to RGB**: `cv2.COLOR_GRAY2RGB` converts a grayscale image back to a 3-channel RGB image
329
  """)
330
 
331
+ st.subheader('**Splitting and Merging Channels**')
332
+ st.markdown("""
333
+ - **Splitting Channels**: Use `cv2.split()` to separate the image into individual channels (B, G, R).
334
+
335
+ ```python
336
+ blue, green, red = cv2.split(image)
337
+ ```
338
+ - **Merging Channels**: Combine individual channels back into a single image using `cv2.merge()`.
339
+
340
+ ```python
341
+ merged_image = cv2.merge((blue, green, red))
342
+ ```
343
+ """, unsafe_allow_html=True)
344
+
345
+
346
 
347