Visual Studio | Convert a color image into Grayscale in C#

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • In this video we will learn to convert a color image into grayscale image using C#
    Points covered in this video:
    How to read an image file in C#
    How to load an image into PictureBox in C#
    How to get pixel value in C#
    How to extract RGB value from pixel in C#
    How to convert color image into grayscale image in C#
    How to save (write) the grayscale image in a file in C#
    You can download the project code from my GitHub repository
    github.com/yus...

ความคิดเห็น • 40

  • @tomsedragon
    @tomsedragon 7 ปีที่แล้ว +2

    I loved the basic theory in the beginning, it made it so much clearer.

    • @yusufshakeel
      @yusufshakeel  7 ปีที่แล้ว

      hope this helps too
      www.dyclassroom.com/csharp-project/how-to-convert-a-color-image-into-grayscale-image-in-csharp-using-visual-studio

  • @bubblegummy2492
    @bubblegummy2492 3 ปีที่แล้ว

    Thank you very much for English explanationม You save my life

  • @lazartashev1358
    @lazartashev1358 4 ปีที่แล้ว

    I must write a comment and say to you one big "Bravo" for the video where everything is explained into details. Thank you :)

  • @informationpro9345
    @informationpro9345 7 ปีที่แล้ว

    Yusuf Bhai informative introduction and really good tutorial..

  • @pecilijevelicanstveni4973
    @pecilijevelicanstveni4973 7 ปีที่แล้ว +1

    Thank you!
    Perfectly clear explanation supported with code! That could be the template for others how to explain things.
    Thanks again!

  • @muhammadhassaanafzal8860
    @muhammadhassaanafzal8860 8 ปีที่แล้ว +3

    very help full video

  • @walrash8564
    @walrash8564 5 ปีที่แล้ว

    Grayscale is not the average value of the three components. Usually, human eyes are more sensitive to green color in comparison to the other two components. The proper evaluation to the common value of the grayscale follows ( (0.3 * R) + (0.59 * G) + (0.11 * B) ).

  • @HazePH
    @HazePH 9 ปีที่แล้ว +3

    Very helpfull

  • @anthoniofernandie8975
    @anthoniofernandie8975 4 ปีที่แล้ว

    your video is so good, thank you, God Bless You

  • @rayogazaki2
    @rayogazaki2 9 ปีที่แล้ว +3

    Awesome!

  • @hosseinesfini6159
    @hosseinesfini6159 7 ปีที่แล้ว +3

    thanks . helpfull for me.

  • @waewtaartpongsa
    @waewtaartpongsa 8 ปีที่แล้ว +1

    so thankful for that VDO. I tried to do it and yes! I got it😁 But after I got the grayscale image now I've been having some problem. The problem is after I saved the output into directory seem like the output file was too big more than x3 from the original. Does anybody have the same problem?

  • @ichraqfawzi4308
    @ichraqfawzi4308 4 ปีที่แล้ว

    thank you so much, that was very helpful.

  • @aliak7374
    @aliak7374 10 ปีที่แล้ว

    Realyy good intro and good tutorial

    • @yusufshakeel
      @yusufshakeel  10 ปีที่แล้ว

      ali ak thanks for watching :-)

  • @usama57926
    @usama57926 6 ปีที่แล้ว +1

    thank u bro amazing

  • @cassiolucass
    @cassiolucass 7 ปีที่แล้ว

    Hello Yusuf, do you think its possible to set the ROI on an image to get the gray value and then measure the diferences betwen the last and the next pixel in order to get the optimal focus adjustment? As higher the diference is, better the focus... ?

  • @landryatamegui5416
    @landryatamegui5416 7 ปีที่แล้ว

    thank you it is very hepfull

  • @abbasaqapour1935
    @abbasaqapour1935 8 ปีที่แล้ว

    Thanks ,I want to compare one image with 9 images of (1 to 9) and at the end the program show me the which digit is similarity to image... is it possible to help me?

  • @PhongNguyen-rv5cb
    @PhongNguyen-rv5cb 6 ปีที่แล้ว

    can you tell me what library version are you using , please? thank you very much

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

    Hello Yusuf, do you have any idea about converting RGB image into HSI or HSV image in C#. If you could help me writing code for it.

  • @matheusbica
    @matheusbica 10 ปีที่แล้ว

    Thanks a lot friend, that helped me!

    • @yusufshakeel
      @yusufshakeel  10 ปีที่แล้ว

      Matheus Bica you're welcome and thanks for watching my video :-)

  • @diorhrr
    @diorhrr 4 ปีที่แล้ว +1

    Why my picture is not appeared ?

  • @marcimuki
    @marcimuki 5 ปีที่แล้ว

    nice video, thanks!

  • @Adomas_B
    @Adomas_B 4 ปีที่แล้ว

    I tried to detect edges by converting image into grayscale, and detecting big changes next to the pixels, I tried with human face and 50 intensity (change in r value) and it looked scary af I immedeatly closed the form

  • @mithuns8410
    @mithuns8410 8 ปีที่แล้ว

    Any chance to throw an Exception for Indexed picture formats?

  • @AS-sb8uo
    @AS-sb8uo 10 ปีที่แล้ว

    Hi, Can you use multithreading in loops ,because it takes too time to process image of (2000 x 2000 or higher) ..Ahmed Saudagar

    • @yusufshakeel
      @yusufshakeel  10 ปีที่แล้ว

      Thanks for watching my video and commenting back.
      I have posted the explanation in the discussion section of my channel where you have posted your comment earlier.
      th-cam.com/users/yusufshakeeldiscussion
      Kindly check that, I hope it will be helpful.
      Thanks :-)

  • @lykalee5165
    @lykalee5165 7 ปีที่แล้ว +2

    Sir, how about in visual c++? Do you know how?

    • @yusufshakeel
      @yusufshakeel  7 ปีที่แล้ว

      never tried vc++ :-(

    • @appdev5351
      @appdev5351 7 ปีที่แล้ว

      But the logic is =

  • @mohamedarafa8568
    @mohamedarafa8568 10 ปีที่แล้ว

    ty was help full

    • @yusufshakeel
      @yusufshakeel  10 ปีที่แล้ว

      Mohamed Arafa thanks for watching.
      there are some more tutorials which you may find interesting.
      here is the playlist
      th-cam.com/play/PLG6ePePp5vvZyTbCFM3r4YmSFxLT40bmL.html
      and here is my website link to image processing project
      www.dyclassroom.com/image-processing-project/introduction
      once again, thanks for watching and commenting :-)

    • @mohamedarafa8568
      @mohamedarafa8568 10 ปีที่แล้ว

      طيب نتكلم عربي بقى :] انت هتفتح الفيس بتاعك امتي ؟
      انا باعتلك اضافه No More :]
      facebook.com/3arafa1
      ياريت تكلمني :]

  • @usama57926
    @usama57926 6 ปีที่แล้ว +1

    bro what about to gray the image

  • @jacksonanthony2329
    @jacksonanthony2329 4 ปีที่แล้ว

    Do anyone know how to convert a video in grayscale in c#?