26 - Denoising and edge detection using opencv in Python

Поділитися
Вставка
  • Опубліковано 14 січ 2025

КОМЕНТАРІ • 35

  • @itsallaguesswork6685
    @itsallaguesswork6685 4 роки тому +10

    I can't thank you enough!! I'm an electrochemist venturing into microscopy and image processing. These are the best introduction to microscopic image processing with python

  • @kelvinxie1029
    @kelvinxie1029 4 роки тому +1

    I am a TEM person and learned a lot from your videos. I am applying what I have learned from you to my research. Thank you for taking the time and effort to make these amazing videos :)

  • @poreddyjayaraju5501
    @poreddyjayaraju5501 3 роки тому

    I am applying what I have learned from you to my research. Thank you for taking the time and effort to make these amazing lessons.

  • @sonamchauhan2968
    @sonamchauhan2968 10 місяців тому

    Thank you so much sir for making these priceless videos!

  • @MrPhilipson00
    @MrPhilipson00 3 роки тому

    Awesome video. Thanks for putting this, and your stuff, out there! Much appreciated. Thank You!

  • @inab617
    @inab617 5 років тому +3

    Thank you for such amazing lessons

  • @samarafroz9852
    @samarafroz9852 4 роки тому +2

    Keep it up I'm learning alot from you.

  • @Garrick645
    @Garrick645 2 роки тому +1

    I want to do area analysis of particles and phase analysis from an SEM micrograph. I'm facing a problem in separating particles having overlapping areas. Though it identifies individual particles, it also takes their cluster as another separate entity.
    Any video on that ?
    I'm new to the channel.

  • @jayayadav-ih1yz
    @jayayadav-ih1yz Рік тому

    Hi what is patch size that you had mentioned in the video? Could you please upload a video describing about it.

  • @coffee_Lipe
    @coffee_Lipe 4 роки тому +1

    Thank you so much, your work is so useful !

  • @nusratrani4590
    @nusratrani4590 2 роки тому

    Thanks for sharing. I am looking for filter or denoising grains image as shared in this video example but also has stress release fractures that cut each other and make close boundaries and resulting in misleading grain size…? I hope I explain my question well.

  • @wenbinfei
    @wenbinfei 4 роки тому

    Thank you for the fantastic tutorials. I have watched tutorial 16 to 26. These tutorials deal with 2D images. My project uses 3D tif. Do the functions in these tutorials also work for 3D images? Do you have a guide about it?

    • @DigitalSreeni
      @DigitalSreeni  4 роки тому +1

      I will record a video on how to work with 3D images. Until then, here is some info...
      2D images have numpy array shape as (x, y) for gray images and (x, y, RGB) for color images.
      3D images typically have structure (z, x, y) for gray and (z, x, y, RGB) for color image stacks.
      Most opencv and scikit-image functions are designed for 2D images. Therefore you need to read one slice at a time inside a for loop and apply the image processing function. Easier than it sounds...
      If I have an image of size (50, 256, 256) - 50 slices gray. If I want to apply threshold to the entire volume, slice by slice.
      binary_img = []
      for img in range(image.shape[0]: #This would be 50 in our example
      input_img = image[img, :, :] #Define temporary image slice name
      thresh = 75 #Or use otsu
      binary = input_img > thresh
      binary_img.append(binary) #Add binarized slice to our placeholder list.
      processed_img = np.array(binary_img) #Convert to numpy array
      #Now save to a tiff file if you want.

    • @wenbinfei
      @wenbinfei 4 роки тому

      @@DigitalSreeni Thanks for the reply. My concern is that is processing images slice by slice may be not the same as using a real 3D filter. For example, Imagej provides both 2D and 3D Gaussian filters. In 3D Gaussian filters, sigma can be assigned to x, y and z. However, in Scikit-image, it seems that only one sigma can be defined. Also, I think 2D watershed can not assigned the same grain in different slices the same label as 3D watershed does. From Scikit-image docstring, its watershed works for both 2D and 3D images but not sure how it works.

  • @아인호9699
    @아인호9699 3 роки тому

    Do you have an image processing code to detect the dead pixel in an image ?

    • @DigitalSreeni
      @DigitalSreeni  3 роки тому

      If you want to clean dead pixels you can use median filter. If you want to detect the location of dead pixels then you need to write code to run median filter and identify hot spots. I do not have anything ready on this topic.

  • @yasertoutah3745
    @yasertoutah3745 3 роки тому

    You're amazing, thank you so much!!

  • @csprusty
    @csprusty 2 роки тому

    But why do we denoise the images? What is the purpose?

  • @rashmiperera1093
    @rashmiperera1093 3 роки тому

    Can I know if there are techniques to detect types of noise in an image. Say for a real dataset of satellite images...how do I find out what filters to use?

    • @DigitalSreeni
      @DigitalSreeni  3 роки тому +1

      In almost all cases, you assume that noise is unstructured, which means it is random. This gives you a few choices. I recently gave a keynote presentation on this topic, here is the link. ua-cam.com/video/yO15IISXA1Y/v-deo.html

    • @rashmiperera1093
      @rashmiperera1093 3 роки тому

      @@DigitalSreeni Thank you so much sir

  • @rishikasharma7761
    @rishikasharma7761 3 роки тому

    If i want to remove a black coloured lines from my image then, what is best algorithm should be used ?

  • @Learning_Electr0nics
    @Learning_Electr0nics 4 роки тому

    Sir ,but how i can de-noise the folder which contains 10 noisy images..??? Means my question is how can we de-noise the 10 images at a time.???

    • @DigitalSreeni
      @DigitalSreeni  4 роки тому

      Use glob or os.listdir to read multiple files from a directory and applying a function. I recorded a couple of videos for my work channel, may be they can help.
      ua-cam.com/video/Z90KEqJoC3w/v-deo.html
      ua-cam.com/video/j6GNtqrwcNE/v-deo.html

    • @Learning_Electr0nics
      @Learning_Electr0nics 4 роки тому

      @@DigitalSreeni
      Sir it gives error when I apply filter to os.listdir(). So can you please give me code for that. Actually I am not able to apply the function to os.listdir

    • @Learning_Electr0nics
      @Learning_Electr0nics 4 роки тому

      @@DigitalSreeni
      I have 1 folder which 8 folders in it and each one contains images.
      Actually I have a multiclass dataset. So I want to apply denoise function to training dataset as well as validation dataset. So please give a code for that.

  • @lekhaarul6654
    @lekhaarul6654 Місяць тому

    If my image has maximum speckle noise and I used these filters and the noise removed but the image blurred. I changed kernel values the higher the kernel values the image get blurred and lower the kernel values it looks the same .can anyone tell what should I do

  • @yusdiansyaputra7333
    @yusdiansyaputra7333 3 роки тому

    how to check noise in image?

  • @rezaEsmkhani-y9z
    @rezaEsmkhani-y9z Рік тому

    thanks sir~!

  • @MohammadShikhar
    @MohammadShikhar 4 роки тому

    Sir, can you kindly make a video on 'Anisotropic Defusion Filter' please??
    I'm searching for this for a long time but not getting good enough documents or tutorials for python.
    I would be a huge help and thanks a lot for the tutorials. These helped me a lot in preparing my final year project. :)

    • @DigitalSreeni
      @DigitalSreeni  4 роки тому

      Did you try medpy library, I remember them having a 2D version of that filter.

  • @sarithamiryala2819
    @sarithamiryala2819 5 років тому

    Good video

  • @jabedahammed7932
    @jabedahammed7932 4 роки тому

    Great