Тёмный

C++ Image Programming From Scratch - 4.1 

Ferrabacus
Подписаться 2,8 тыс.
Просмотров 59 тыс.
50% 1

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/fer...

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 88   
@ferrabacus2980
@ferrabacus2980 3 года назад
Hey Everyone, a few people have asked for some test p3 images so here they are! github.com/ferrabacus/p3images
@jesuschris9543
@jesuschris9543 2 года назад
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 3 года назад
Fantastic tutorial, sometimes I like understanding how files works in a less abstracted way.
@ferrabacus2980
@ferrabacus2980 2 года назад
Same here! Going to try and keep it less abstracted going forward!
@berkle
@berkle 2 года назад
First video of yours I've seen and only a quarter through and I'll say you're a fantastic teacher.
@crossfadez5521
@crossfadez5521 2 года назад
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!
@justcurious1940
@justcurious1940 18 дней назад
Interesting content, amazing channel, cool teacher, I can watch u the whole day, God bless u and bless America for creating this beautiful world that is called the internet.
@hejhej5833
@hejhej5833 2 года назад
how do i open a ppm image?
@dansketch4603
@dansketch4603 2 года назад
You posted cool stuff. I hope your channel is growing faster.
@krisvers
@krisvers Год назад
You should do another one of these image manipulation videos but with TGA or BMP
@benediktasbelevicius475
@benediktasbelevicius475 2 года назад
Imma be your 600th sub. I really like the miniLab
@PraveenKumar-hg1lf
@PraveenKumar-hg1lf 3 года назад
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 года назад
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.
@ethanedgington2713
@ethanedgington2713 Год назад
Cannot emphasize how helpful this video was!!
@kushagrarai2586
@kushagrarai2586 2 года назад
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.
@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!
@joseguzman4682
@joseguzman4682 2 года назад
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.
@MrWickedsouls
@MrWickedsouls 10 месяцев назад
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?
@ali-gw3zb
@ali-gw3zb Год назад
What a tutorial, you made everything about image so clear; thanks anyway.
@Walkingdeadman1991
@Walkingdeadman1991 2 года назад
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...?
@rabiumuhammedeffect423
@rabiumuhammedeffect423 Год назад
Great tutorial I have ever seen. And you codes are neat and self explanatory. #THNKS
@ferrabacus2980
@ferrabacus2980 Год назад
You are welcome!
@adammontgomery7980
@adammontgomery7980 2 года назад
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.
@fgdou
@fgdou 3 года назад
That's really good quality teaching video Thanks!
@ferrabacus2980
@ferrabacus2980 3 года назад
Thanks Fabien! I'm glad it was helpful!
@Ali_X20
@Ali_X20 Год назад
This is Made My Day! Thanks!
@ferrabacus2980
@ferrabacus2980 Год назад
I'm glad!
@forgotten_menace
@forgotten_menace 2 года назад
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!
@viccs842
@viccs842 3 года назад
Awesome video! I learned a lot about image processing from you!
@ferrabacus2980
@ferrabacus2980 3 года назад
Hey @VicCS, I appreciate that! Glad the video was helpful!
@user-ms3eb7mg6q
@user-ms3eb7mg6q Год назад
i'm looking for the 4.0 video that was referenced in the 4.1 video. Can't find it?
@cocacola7535
@cocacola7535 2 года назад
sound is too low.
@Creepstor6789
@Creepstor6789 Год назад
Watch the video with Head set 😅 🧠🔥🔥
@velocipede5877
@velocipede5877 2 года назад
Best tutorial honestly! Make more videos please ...
@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?
@Flippeh
@Flippeh 2 года назад
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
@ALEET
@ALEET Год назад
Awesome now let’s do libavcodec
@joseguzman4682
@joseguzman4682 2 года назад
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!
@stevenhancock3364
@stevenhancock3364 2 года назад
how long would i have to run it, generating random pixels, into it's output is a picture of me by chance?
@hugginskakono6499
@hugginskakono6499 2 года назад
amazing lecture you made
@ajaypalsinghsidhu1458
@ajaypalsinghsidhu1458 7 месяцев назад
can we create image from pixels in opencv in cpp???
@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
@davidc4273
@davidc4273 2 года назад
I have my proggram and picture but I dont get the new picture, may you help me?
@nagesha
@nagesha 3 года назад
❤️i like it , Do more videos sir👍🏻
@ferrabacus2980
@ferrabacus2980 3 года назад
Thank you! I'm currently planning more videos to come soon!
@prathamjaiswal3243
@prathamjaiswal3243 2 года назад
Amazing tutorial
@leeoiou7295
@leeoiou7295 2 года назад
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.
@kinhkong69z62
@kinhkong69z62 3 месяца назад
men this good thanks
@xyvler3041
@xyvler3041 3 года назад
Cool video
@user-ms3eb7mg6q
@user-ms3eb7mg6q Год назад
Is there an advantange to using P6 over P3?
@JoJo777890
@JoJo777890 8 месяцев назад
How to open ppm files on Windows 10?
@hugginskakono6499
@hugginskakono6499 2 года назад
where do I get the source code of the program made on this video
@MrFudgecakeCF
@MrFudgecakeCF 3 года назад
great video
@ferrabacus2980
@ferrabacus2980 3 года назад
Thank you!
@kinki2474
@kinki2474 2 года назад
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
@prathmeshnagpure8072
@prathmeshnagpure8072 2 года назад
Awesome thank you!
@hejhej5833
@hejhej5833 2 года назад
how do i convert a p6 file to p3?
@andsoehd277
@andsoehd277 9 месяцев назад
this is hidden gems, thank you:) can u make foto jpeg/jpg please :D
@imvention5696
@imvention5696 Год назад
Do you have tutorial for jpg type file?
@wristocrat
@wristocrat 2 года назад
Sound too low I agree. Please turn gain up
@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).
@quangtruong6191
@quangtruong6191 2 года назад
can you do a tutorial on how to compress an image by c++
@ferrabacus2980
@ferrabacus2980 2 года назад
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 7 месяцев назад
@@ferrabacus2980 Have u done creating??
@basicinfo30
@basicinfo30 3 года назад
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 года назад
They are posted now! github.com/ferrabacus/p3images
@soumyadrip
@soumyadrip 3 года назад
Can you please share the code.
@ferrabacus2980
@ferrabacus2980 3 года назад
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 года назад
Do you happen to play along us?
@ferrabacus2980
@ferrabacus2980 3 года назад
Unfortunately, I don't!
@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 года назад
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!
@pieruapina
@pieruapina 2 года назад
@@ferrabacus2980 where do you actually do this? after the streams or?
@pweddy1
@pweddy1 2 года назад
PPM is worse than “not compressed.” It’s text encoded images instead of binary.
@jameshopkins3541
@jameshopkins3541 7 месяцев назад
????????????
@numero17100
@numero17100 4 месяца назад
Great video, is there a method to move through the file like a vector?