I am doing a CBIR system as an assignment.There are 100 .bmp files,but they have different size,how to re-size them to a same size? Thanks.
Asked
Active
Viewed 2,629 times
3 Answers
1
Have a look at the CImg Library, it's quite easy to use. You can load your bitmap file then use one of the resize
function.

laurent
- 88,262
- 77
- 290
- 428
1
Probably a overkill, but you can take a look on ImageMagick.

KAction
- 1,977
- 15
- 31
-
To the contrary, I think this is a good answer. ImageMagick and a bash script and you'll be done in 2 minutes. – Mahmoud Al-Qudsi Jun 26 '12 at 05:32
0
You should look at G'MIC, a command-line tool to batch image processing operations. It is even more advanced than ImageMagick's convert tool.
Basically, you can call it like this :
gmic *.bmp -resize 128,128,1,3,3 -outputp resized_
to resize all your bmp images into 128x128 color images, and save them with filenames prefixed by 'resized_'.
G'MIC is available for Linux, Windows and Mac, at : http://gmic.sourceforge.net

cjuliard
- 154
- 2