Image Histogram and Histogram Equalization in MATLAB | Image Processing

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ธ.ค. 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 🤠

  • @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.

  • @numan3815
    @numan3815 2 ปีที่แล้ว +1

    thank you!! 👑

  • @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 ปีที่แล้ว +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_  ปีที่แล้ว

      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 ปีที่แล้ว +1

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

    • @philparisi_
      @philparisi_  ปีที่แล้ว

      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 ปีที่แล้ว +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_  ปีที่แล้ว +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 2 ปีที่แล้ว +1

    can you do sound processing?

    • @philparisi_
      @philparisi_  2 ปีที่แล้ว

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

    • @numan3815
      @numan3815 2 ปีที่แล้ว +1

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

    • @philparisi_
      @philparisi_  2 ปีที่แล้ว +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!)