27 - CLAHE and Thresholding using opencv in Python

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

Комментарии • 41

  • @yashtrivedi6830
    @yashtrivedi6830 4 года назад +1

    I really need to say you are sharing a really really good content with us. Thank you so much sir. I have seen hundreds of videos on RUclips, also I took some online courses but no one explained like you. Please do make such videos for us.
    Have a great time ahead.

  • @caiyu538
    @caiyu538 3 года назад

    Excellent tutorials, I learned a lot about deep learning application in image processing. Thank you so much

  • @blackcatlab5245
    @blackcatlab5245 4 года назад +1

    Thank you for the great videos! You give us such good explanations!

  • @coffee_Lipe
    @coffee_Lipe 4 года назад

    Thank you, again, for your great videos !

  • @dwarfminer
    @dwarfminer 10 месяцев назад

    Hello Dr. Sreenivas Bhattiprolu. Thank you for sharing such a rich content. In this video you said "..the last you want do is work with .jpg format images. Save them as .tiff..". Do you have a specific video about it. I did a quick search and I didn't find it. Thank you.

  • @adithiajo5028
    @adithiajo5028 5 лет назад +2

    can you explain to me about the number in clahe, cliplimit and tilegridsize ? how to get the best one, and what that mean cliplimit and tilegridsize ? because i try in my case with 2 and 8,8 the result is not good,
    (please need very detail :) thank you )

    • @DigitalSreeni
      @DigitalSreeni  5 лет назад +1

      Please have a look at CLAHE documentation on opencv (also other places) to understand the implications of clip limit and grid size. There is no single answer for every image, the result depends on the local contrast in your image. Sorry to give you a non answer but this is the true. Here is the link to opencv documentation.
      docs.opencv.org/master/d5/daf/tutorial_py_histogram_equalization.html
      Here is another good one....
      www.cs.utah.edu/~ssingla/IP/P2/CLAHE.html

    • @jothegamechanger
      @jothegamechanger 5 лет назад

      thanks

  • @gurdeepsinghbhatia2875
    @gurdeepsinghbhatia2875 4 года назад

    Again sir , rhanks a lot excellent video

  • @adinhobl
    @adinhobl 3 года назад

    Very useful for me!

  • @vivek-159-icd
    @vivek-159-icd 2 года назад

    How could I use these operations on a dataset of 100 images?
    Please anyone...

  • @agneljohn6093
    @agneljohn6093 4 года назад

    Can u please help in using the code or functions in opencv that can be used to clahe

  • @syedfarooqshah5984
    @syedfarooqshah5984 2 года назад

    Sir clahe and EH apply it on full data set and then classification that all images

  • @premkverma9723
    @premkverma9723 2 года назад

    How to save my show image as cl_img and eg_img ??

    • @DigitalSreeni
      @DigitalSreeni  2 года назад

      Please continue watching the videos to learn various aspects, including saving.

  • @haintuvn
    @haintuvn 4 года назад

    Is that possible to apply CLAHE on an image which has been applied equalized histogram? Thank you!

    • @DigitalSreeni
      @DigitalSreeni  4 года назад

      Yes, of course. These are just image processing operations (tools) so you can apply them any way you want as long as you are after extracting information from your images.

  • @dominicsavio7245
    @dominicsavio7245 3 года назад

    Can you make a video on how to extract features from an image and also from collection of images and write into csv file

    • @DigitalSreeni
      @DigitalSreeni  3 года назад +1

      I have explained feature extraction and capturing features into a pandas data frame in many videos. You just need to save the data frame to csv, just a single line command. Please watch my videos 57 to 67.

  • @felixindra7683
    @felixindra7683 4 года назад

    can you make manual stages clahe with 3x3 or 10x10 matrix?

    • @DigitalSreeni
      @DigitalSreeni  4 года назад

      Not sure what you mean, can you pleas explain? If you’re inquiring about using custom tile size for CLAHE, then yes you can do it.

    • @felixindra7683
      @felixindra7683 4 года назад

      @@DigitalSreeni I want to know how the CLAHE calculation works without using the python opencv library and I have an assignment to find calculations
      CLAHE manual, and can you make manual CLAHE calculations please?

  • @Nelliellyy
    @Nelliellyy 3 года назад

    Thank you.

  • @agneljohn6093
    @agneljohn6093 4 года назад

    Thank you sir

  • @shrutigrover4390
    @shrutigrover4390 5 лет назад

    Can we use CLAHE for RGB colored images?

    • @DigitalSreeni
      @DigitalSreeni  5 лет назад +2

      Not directly. You first need to convert RGB to another color space (not gray) and then convert back to RGB. For example you can convert to YUV space using
      cv2.COLOR_BGR2YUV
      Then perform CLAHE on the Y channel and then convert the YUV image back to RGB.
      cv2.COLOR_YUV2BGR

    • @DigitalSreeni
      @DigitalSreeni  5 лет назад

      @Ashwin Ramesh This is also a good approach, sounds simple enough to implement. Thanks Ashwin.

  • @agneljohn6093
    @agneljohn6093 4 года назад

    I have a requirement to learn clahe in detecting real time vein detection using ir camera

  • @divyanshsahu8750
    @divyanshsahu8750 3 года назад

    can you hep me in analysising of bio-Speckle Images,it will be really helpful for m research work

  • @ouss2as4
    @ouss2as4 4 года назад

    hi ..
    i'am new on python.
    i have a folder of x-ray images from 1.jpg to 183.jpg (gbr images)
    i want to apply CLAHE on all the images .. i wrot a lot of codes but always have errors
    can you help me pleass

    • @DigitalSreeni
      @DigitalSreeni  4 года назад +1

      I will record a video on the topic of reading multiple images and applying a function (filter). If you cannot wait, here are few lines that demonstrate using Gaussian; just replace with CLAHE.
      ## Using GLOB
      #Now, let us load images and perform some action.
      #import the opencv library so we can use it to read and process images
      import cv2
      import glob
      from skimage.filters import gaussian
      from skimage import img_as_ubyte
      #select the path
      path = "test_images/imgs/*.*"
      img_number = 1 #Start an iterator for image number.
      #This number can be later added to output image file names.
      for file in glob.glob(path):
      print(file) #just stop here to see all file names printed
      img= cv2.imread(file, 0) #now, we can read each file since we have the full path
      #process each image - change color from BGR to RGB.
      smoothed_image = img_as_ubyte(gaussian(img, sigma=5, mode='constant', cval=0.0))
      cv2.imwrite("test_images/smoothed/smoothed_image"+str(img_number)+".jpg", smoothed_image)
      img_number +=1

    • @ouss2as4
      @ouss2as4 4 года назад

      @@DigitalSreeni thanks for the help ♥️🥰 i really appreciate your support

  • @boydenlee9785
    @boydenlee9785 4 года назад

    when I try to use CLAHE to handle MRI Image stored in nii format, it seems that opencv can not solve 16-bit depth Image. How can we solve this problem?

    • @DigitalSreeni
      @DigitalSreeni  4 года назад

      I believe opencv CLAHE works only for 8 bit images. So please change your 16 bit to 8 bit.
      You can also try scikit-image CLAHE, it may work on 16 bit.
      scikit-image.org/docs/dev/api/skimage.exposure.html#skimage.exposure.equalize_adapthist