C++ Image Programming From Scratch - 4.1

Поділитися
Вставка
  • Опубліковано 7 бер 2021
  • How to make a simple PPM image in C++.
    How to add filters to PPM pictures in C++.
    Here are some test p3 images you can use with this!
    github.com/ferrabacus/p3images

КОМЕНТАРІ • 87

  • @ferrabacus2980
    @ferrabacus2980  3 роки тому +4

    Hey Everyone, a few people have asked for some test p3 images so here they are!
    github.com/ferrabacus/p3images

  • @jesuschris9543
    @jesuschris9543 2 роки тому +18

    0:00 Intro
    0:15 What You'll Learn
    0:59 Image Research
    7:56 Basic Image Writing
    8:53 Live Code (creating an image)
    18:46 Applying Filters to Images
    20:19 LiveCode (applying a filter)
    35:10 MiniLab - Image Programming

  • @iluvsyphonfilter
    @iluvsyphonfilter 2 роки тому +16

    Fantastic tutorial, sometimes I like understanding how files works in a less abstracted way.

    • @ferrabacus2980
      @ferrabacus2980  2 роки тому +3

      Same here! Going to try and keep it less abstracted going forward!

  • @berkle
    @berkle 2 роки тому +3

    First video of yours I've seen and only a quarter through and I'll say you're a fantastic teacher.

  • @crossfadez5521
    @crossfadez5521 Рік тому +3

    This was amazing!'
    I have been wanting to learn about manipulating images with C++ but I was scared it was hard. But this video was very easy to follow and was extremely useful. Thank you very much!

  • @ethanedgington2713
    @ethanedgington2713 Рік тому

    Cannot emphasize how helpful this video was!!

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

    Thank you for this Tutorial.
    I just wanted a simple way to create Datamatrix images in c++ and this is all i need!

  • @dansketch4603
    @dansketch4603 Рік тому

    You posted cool stuff. I hope your channel is growing faster.

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

    Imma be your 600th sub. I really like the miniLab

  • @ali-gw3zb
    @ali-gw3zb Рік тому

    What a tutorial, you made everything about image so clear; thanks anyway.

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

    Just amazing explaination. Ferrabacus God bless you for such kind of great and professional explanation! great pedagogy.

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

      Hey Jose! So happy to hear that! Thank you.

  • @rabiumuhammedeffect423
    @rabiumuhammedeffect423 Рік тому +1

    Great tutorial I have ever seen.
    And you codes are neat and self explanatory.
    #THNKS

  • @Ali_X20
    @Ali_X20 Рік тому +1

    This is Made My Day! Thanks!

  • @fgdou
    @fgdou 3 роки тому +3

    That's really good quality teaching video
    Thanks!

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

    Best tutorial honestly! Make more videos please ...

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

    amazing lecture you made

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

    Amazing tutorial

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

    Awesome thank you!

  • @viccs842
    @viccs842 2 роки тому +2

    Awesome video! I learned a lot about image processing from you!

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

      Hey @VicCS,
      I appreciate that! Glad the video was helpful!

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

    Loved it please made more videos in this image programming series please

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

      I appreciate that! And those videos will be coming soon!

  • @PraveenKumar-hg1lf
    @PraveenKumar-hg1lf 3 роки тому +5

    Dude your videos are amazing and your teaching style is awesome, make more of these please.
    I have a questions:
    -> Will you cover some sort of graphics library. Something like processing in java, in future.
    And a request, could you please increase your audio volume it's quite low.

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

      Hey Praveen, thank you I appreciate that! I will be covering some c++ graphics libraries like SDL2 which overlaps OpenGL and maybe a few others soon (wxwidgets for windowed applications). I will be staying away from Java graphics libraries though.

    • @PraveenKumar-hg1lf
      @PraveenKumar-hg1lf 3 роки тому

      @@ferrabacus2980 Thanks a lot, that will be fun.

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

    Cool video

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

    Fantastic video, thanks so much! Do you know where I could find information on video programming? I.e., how to stitch together generated images into an avi, mp4, mpeg, etc...?

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

    great video

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

    men this good thanks

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

    I had an idea that I can't quite flesh out. I want to generate images based on hash values. Using sha512, you get an 8x8 image but it needs to be scaled up to be practically viewable. I haven't been able to find or come up with an algorithm that works without blending the grayscale pixels. Any help would be appreciated.

  • @krisvers
    @krisvers Рік тому

    You should do another one of these image manipulation videos but with TGA or BMP

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

    ❤️i like it ,
    Do more videos sir👍🏻

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

      Thank you! I'm currently planning more videos to come soon!

  • @kushagrarai2586
    @kushagrarai2586 2 роки тому +3

    Hey i want to know where you open this ppm file i want to see this but unable to see in window 10 os can you give me some hint where i can see this ppm file format.

  • @MrWickedsouls
    @MrWickedsouls 8 місяців тому +1

    I am taking C++ as my new language after working on the front end for over 7 years. I was always interested in low level code and your video helped a lot. The only thing I don't understand is why .ppm files opened in VS code show numbers and not binarires and why jpg files dont show digital or binary content?

  • @JS-rp4pq
    @JS-rp4pq 2 роки тому

    any idea if ppm images can be transparent, or how to make them transparent when you convert them to png etc

  • @user-ms3eb7mg6q
    @user-ms3eb7mg6q Рік тому

    i'm looking for the 4.0 video that was referenced in the 4.1 video. Can't find it?

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

    why do you add a space at the end of each line? For ease of read when code is stringified or something?

  • @kinki2474
    @kinki2474 Рік тому

    Hello, there! Sorry that I'm late, but thanks a lot. I turned stuff in this video into a library & portted it into C instead of C++. If you can, please make another video, about stuff such as cutting, sharpening, flipping & rotating. I would really appreciate it

    • @matei8259
      @matei8259 Рік тому

      heeey, if you would like to share with me the library you portted into c you would really help me out a looot, thank you very much in advance

  • @stevenhancock3364
    @stevenhancock3364 Рік тому

    how long would i have to run it, generating random pixels, into it's output is a picture of me by chance?

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

    I have my proggram and picture but I dont get the new picture, may you help me?

  • @ajaypalsinghsidhu1458
    @ajaypalsinghsidhu1458 5 місяців тому

    can we create image from pixels in opencv in cpp???

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

    Sound too low I agree. Please turn gain up

  • @andsoehd277
    @andsoehd277 7 місяців тому

    this is hidden gems, thank you:)
    can u make foto jpeg/jpg please :D

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

    how do i open a ppm image?

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

    where do I get the source code of the program made on this video

  • @user-ms3eb7mg6q
    @user-ms3eb7mg6q Рік тому

    Is there an advantange to using P6 over P3?

  • @ALEET
    @ALEET Рік тому

    Awesome now let’s do libavcodec

  • @JoJo777890
    @JoJo777890 7 місяців тому

    How to open ppm files on Windows 10?

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

    how do i convert a p6 file to p3?

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

    I would like to know how to identify data in a picture more tha colors. for example like to identify if what i am reading is a bird , a fish, a tree and so on. is there any advanced documentation you can suggest ? thanks in advance

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

      Hey Jose, you would need to look into OpenCV, which stands for open computer vision. Essentially, you train the algorithm by giving it pictures that look like what you want to identify so it can find it in new pictures!

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

    How hard do you think it would be to take an image, use the two for loop strategy to take in the "brightness value" of each pixel, and then generate some sort of ASCII art interpretation of the image? thanks

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

      Hey Flippeh, It would add a degree of complexity. In my opinion, it might be easier to work with by changing all the colors to a gray scale. Then grouping them and converting them to ASCII.

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

      @@ferrabacus2980 Thank you for the response! I think my biggest issue is determining how I would group the colors

  • @imvention5696
    @imvention5696 Рік тому

    Do you have tutorial for jpg type file?

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

    can i use this technique for videos? how does one write a video file with an array of bytes? please reply

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

      Hey Leeo, you could use it for videos but it most definitely would cause a lot of issues with memory since this is uncompressed.

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

    How can I find a P3-Image? With Gimp I made a TestColorImage, it's P6.

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

      Hey Thomas, I apologize for not getting back to you sooner. You can use an external package called ImageMagick (imagemagick.org) to convert these images (that is what I did).
      It can be used programatically or via the command line (I used it through the command line).

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

    sound is too low.

    • @Creepstor6789
      @Creepstor6789 Рік тому +3

      Watch the video with Head set 😅 🧠🔥🔥

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

    Can you post a link to some p3 type ppm images?
    Thanks!

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

      That is a good idea, I’ll get some test images up on GitHub ASAP. I’ll respond here when I have it and pin that comment for others.

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

      They are posted now!
      github.com/ferrabacus/p3images

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

    how to convert image into grayscale without using opencv in c++. can you put the code in reply please

    • @ferrabacus2980
      @ferrabacus2980  3 роки тому +2

      It is actually pretty simple to do, you just have to add the red, green, and blue values and divide by 3. Then use that value for the r, g, b values. Try doing this first and see what you come up with!

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

      @@ferrabacus2980 where do you actually do this? after the streams or?

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

    Can you please share the code.

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

      That is a really good idea, I'm going to work on getting the code for the videos up on GitHub and share the link!

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

    Do you happen to play along us?

  • @quangtruong6191
    @quangtruong6191 2 роки тому +2

    can you do a tutorial on how to compress an image by c++

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

      Hey Quang, that is on my list of new videos to make soon. Working on a GUI tutorial first so we can see our images and compress them!

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

      @@ferrabacus2980 thank you love your videos

    • @ajaypalsinghsidhu1458
      @ajaypalsinghsidhu1458 5 місяців тому

      @@ferrabacus2980 Have u done creating??

  • @jameshopkins3541
    @jameshopkins3541 5 місяців тому

    ????????????

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

    PPM is worse than “not compressed.”
    It’s text encoded images instead of binary.

  • @numero17100
    @numero17100 2 місяці тому

    Great video, is there a method to move through the file like a vector?