25 - Reading Images, Splitting Channels, Resizing using openCV in Python

preview_player
Показать описание
openCV is a library of programming functions mainly aimed at computer vision but also very helpful for processing microscope images. This tutorial explains a few basic operations in openCV to read & resize images and to split & merge channels.

Рекомендации по теме
Комментарии
Автор

Thank you so much for taking the hardships of bringing all the information together. Only one of a kind channel. Precious information explained o detail. I will refer it to all my friends as well. Thanks again.

sdc
Автор

Thank you very much for explaining all these important image processing tools in a very straightforward manner!

shahabansari
Автор

Sir how to set bit depth of an image??

samreens
Автор

Hi Dr. Bhattiprolu, thanks for the videos. I am trying to do a batch process to merge images with same partial name from different folders using scikit image. I have written this the following code which ran smoothly the first time, however when I repeat the same on a different folder, I get an error merge_imgs is not defined. I was wondering what library to merge images in scikit

# import libraries
%matplotlib inline
import os
import matplotlib.pyplot as plt
from skimage import io
import numpy as np
import glob

pathname1 = 'data/H3K9me3/dapi'
pathname2 = 'data/H3K9me3/foci'

# loop
for f1 in os.listdir(pathname1):

# create name d2
f2 = f1[:-6] + 'd2.TIF'

# create file paths
img_blue = os.path.join(pathname1, f1)
img_red = os.path.join(pathname2, f2)

# read files
img_blue_file = io.imread(img_blue)
img_red_file = io.imread(img_red)

# merge files
merged = merge_imgs([img_blue_file, img_red_file])

# create output file name
output_name = 'data/H3K9me3/merged/' + f1[:-6] + '.TIF'

# save merged files
io.imsave(output_name, merged)

dumisilelumkwana
Автор

I am interested in ai-medical image analysis.
Is it right for me to take this lecture?

김태호-mdl
Автор

Thank you this is was helpful, how we can apply this for the whole folder

khadijabarhmi
Автор

Have you any video about how to classify multiple textures for one image using OpenCV?

redhwanalgabri
Автор

Hi Dr. Bhattiprolu, thanks for the videos, I get this error when I want to use cv2.imshow for merged and resized image: 'numpy.ndarray' object is not callable, not sure how to solve it

LeilaMa_
Автор

Thank you for your videos, you are doing a great job. So far I've only seen a couple of your videos on opencv, which made my work easier and saved lot of my time on searching. Currently I'm working on an application which uses opencv and pyqt5 to process and display some 16 bit grayscale and rgb images and it's information. Since I'm new to python gui I'm really facing a hard time displaying the opencv processed images in QLABEL after formating it using QImage 's format options. What I came through from Google search is that QImage won't support 16 bit images. So please give me some tips on this issue also please let me know if there is any other options available to display these images.

ManojKumar-rmcq
Автор

How to check image is grascale or RGB using python code

sushamakhatavkar-mule
Автор

Your videos are good for me, I watched all of them twice, my question here what meaning of 6, 11, 22, 80
('Top left', 6)
('Top right', 11)
('Bottom Left', 22)
('Bottom right', 80)
when changing 1(color) to 0 (gray)

redhwanalgabri
Автор

Also for reading it's showing syntaxerror : (Unicode error)'unicodeescape' codec can't decide bytes in position 2-3 truncated escaep
Can you please tell me what's the problem

sushilkotwal
Автор

Whatever code you r typing isn't working in my Spyder
It's showing attribute error : 'NoneType' object has no attribute 'shape'
To display the size of the image

sushilkotwal
Автор

Sir, dont make your presentation for microscopist .It is beneficial for all im just saying this because this will bring more students to your channel and more will be benefitted...

prashantjaiswal