Need urgent help: TGA file read write and then Smoothing
-
@hustbaer Hi hustbaer, I would focus on Uncompressed Targa image format first. Then would want to apply smoothing technique. Blur filter needs to be applied to the images. Any idea on this?
-
I give up.
Good luck with this.
-
@tampere2021 sagte in Need urgent help: TGA file read write and then Smoothing:
Blur filter needs to be applied to the images. Any idea on this?
OpenCV is OpenSource, there are some common blur filters, so you can take a look there ....
If you know which concrete blur filter you wonna apply (gaussian .... etc ) then the Internet also can tell you the mathematics behind. You only have to search for .... (think not every member here is intrested in basic computer vision / image manipulation algorithms, so the most ones would use a lib for it)The question is, why do YOU have to do this job, with this requirements (not using 3d party libs) ? There is a lot of mathematics and algorithms involved, and its looks like you have not that much experience to read specifications in the internet and apply this to working code ...
So is it for learning or should it realy become productive code ?
-
@RHBaum Its for learning purpose. I cant use any 3rd party libraries here. Need to use std libraries only
-
@tampere2021 sagte in Need urgent help: TGA file read write and then Smoothing:
I cant use any 3rd party libraries here.
Could I ask Why?
Thats not really common in programming area, and it makes your "job" not easy.
In a real bussines environment it would not workable, at least not with this non trivial requirements.But yes, maybe its doable, but it would even a challange for an experienced developer. So it would take a lot of time ....
-
@RHBaum
Implementing a blur filter is pretty easy. Implementing one that creates good looking results is a little harder, but still not hard. I didn't look, but I'm sure there's plenty of material online about calculating the coefficients. Also for a blur filter, you can use almost any coefficients and it will look OK.What's really hard though, is implementing a blur filter that's efficient. As in not 10x or even 100x slower compared to a really fast implementation.
And the part about reading & writing TGA images should also not be a challenge for an experienced programmer. TGA is really simple compared to almost all other formats. (BMP is simple too, but only if you restrict it to a narrow subset of all possible BMP sub-formats.)
Could I ask Why?
Since he was asked repeatedly, and doesn't really want to answer, I'm pretty sure it's homework or something similar.
-
@hustbaer This is not a homework. im just trying out various image formats and manipulating them and apply algorithm to make them more efficient and optimize it as needed.
-
@tampere2021 sagte in Need urgent help: TGA file read write and then Smoothing:
@hustbaer This is not a homework. im just trying out various image formats and manipulating them and apply algorithm to make them more efficient and optimize it as needed.
Are you serious? Do you think you can do it better than those people who create dedicated libraries?
You are struggling with reading/writing TGA images and I doubt you´ll produce anything as good as freely available libraries.
-
@DocShoe I am able to read and write TGA images using std c++ libraries now.
-
@tampere2021 sagte in Need urgent help: TGA file read write and then Smoothing:
@hustbaer This is not a homework. im just trying out various image formats and manipulating them and apply algorithm to make them more efficient and optimize it as needed.
No, you're not, because you obviously have no idea what you're doing. Maybe that's what you want to do, or think you're doing. But no, you're certainly not optimizing anything or making anything more efficient.