2022 Image Histogram and Histogram Equalization in MATLAB | Image Processing

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

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

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

    Hi viewers -- there's an entire 14 video image processing series available NOW on my Patreon! www.patreon.com/philsbeginnercode (I still have zero Patrons so you have a chance to make my day)

  • @alexarunyan
    @alexarunyan 2 года назад +1

    Great example image! I was half expecting the histogram to look like a pyramid…

  • @haaskaiiitt
    @haaskaiiitt 2 года назад +1

    Super helpful, once again thank you!

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

      Hi Kat Sha - thank you for the comment and I'm glad you enjoyed the video!
      If you are looking for more image processing videos, they are all available on my Patreon!! www.patreon.com/philsbeginnercode
      Otherwise, feel free to hang around for the weekly uploads! New videos every week through September on Image Processing - subscribe to get updates 🤠

  • @numan3815
    @numan3815 Год назад +1

    thank you!! 👑

  • @lz1420
    @lz1420 Год назад +1

    Which toolbox do you need for imhist, histeq, because Im getting "Undefined function 'imhist' for input arguments of type 'uint8'"? I could still do them all on matlab online though.
    Thanks. 🤓

    • @philparisi_
      @philparisi_  Год назад +1

      Hi there, I actually don’t think it’s a package issue. It’s a datatype issue. Uint8 is the default image datatype, holding integer values from 0 to 255.
      Instead, those functions wants to use the ‘double’ datatype. Run your image through im2double().
      img = im2double(img)
      And that will convert 0 to 255 to a decimal between 0 and 1.
      The only reason I can fathom that MATLAB online works is that newer versions allow imhist, etc to accept uint8 but your native install is older.

  • @janmichna8511
    @janmichna8511 Год назад +1

    what is the difference between the imhisteq and imhistmatch functions?

    • @philparisi_
      @philparisi_  Год назад

      Hi Jan, imhisteq(I) take the image ‘I’ and applies an equalizated histogram distribution for equal intensity/brightness values.
      On the other hand, if you have some image ‘G’ (that can have any distribution of brightness) then you can use imhistmatch(I, G) to make I match G. If G is already equalized, then imhistmatch(I, G) is the same as imhist(I).

  • @mojtabafarazmand1466
    @mojtabafarazmand1466 9 месяцев назад +1

    Hi thanks for your exellent explanation but one thing is ambiguous is the number of rows represent the height of the picture and the number of culumns represent the width , am I right?

    • @philparisi_
      @philparisi_  9 месяцев назад

      Hi there, for a general histogram we aren‘t interested in the height or width of the photo, just the intensity of the colors.
      For a general photo that we read in with imread(), the rows and columns form a matrix (matlab data structure) that tells us how many pixels there are. So the numbers of rows would be the ‚height in pixels‘ and cols would be ‚width in pixels‘.
      Does this help?

    • @mojtabafarazmand1466
      @mojtabafarazmand1466 9 месяцев назад +1

      @philparisi_ Yes, it was very helpful.
      Actually, it's maybe irrelevant, but you are the first individual in RUclips who liked and replied to my comment.Thank you for your attention🥲👍

    • @philparisi_
      @philparisi_  9 месяцев назад

      Absolutely! I make content to support programmers like you and have responded to every comment on the channel to fulfill that mission. Always here to help :)

    • @mojtabafarazmand1466
      @mojtabafarazmand1466 9 месяцев назад +1

      @philparisi_ I wish you success 🙌. Honestly I watched your tutorial on matlab for beginners about 6 months ago that was superb but I felt shy to comment and thank you for your great job.❤🫶

    • @philparisi_
      @philparisi_  9 месяцев назад +1

      Oh sweet thanks for tuning in! Comment anytime, and if I don‘t respond you can always email me at philsbeginnercode@gmail.com

  • @numan3815
    @numan3815 Год назад +1

    can you do sound processing?

    • @philparisi_
      @philparisi_  Год назад

      Hi Numanert, sure! What specifically are you looking for?

    • @numan3815
      @numan3815 Год назад +1

      @@philparisi_ just basics i don't know the details but like: sound(y,fs),reverse audio,chirp function,downsample,

    • @philparisi_
      @philparisi_  Год назад +1

      Thank you for the specifics! I‘ll try to come out with something in the next couple of months. Stay tuned and subscribe to get the update (if you aren‘t already!)