あなたのニーズに合った画像処理ライブラリがあるようです。ですから、私の助言は、できるだけシンプルなライブラリを使用してビルドプロセスに統合することです。 このコンテキストでは、CImgライブラリはシンプルな.hファイルで構成されているため、非常に簡単です。
あなたの必要性については、可能な実装は正確にあなたの問題が何であるか、そう
#include "CImg.h"
using namespace cimg_library;
int main(int argc,char **argv)
{
CImg<unsigned char> image("img/logo.bmp");
//Simple resize with nearest neighbour interpolation
//image = image.resize(64, 64);
//If you want to specify the interpolation type
image = image.resize(64, 64, -100, -100, 4);//The last param specifies the interpolation type
//\param interpolation_type Method of interpolation :
// -1 = no interpolation : raw memory resizing.
// - 0 = no interpolation : additional space is filled according to \p border_condition.
// - 1 = nearest-neighbor interpolation.
// - 2 = moving average interpolation.
// - 3 = linear interpolation.
// - 4 = grid interpolation.
// - 5 = bicubic interpolation.
// - 6 = lanczos interpolation.
CImgDisplay main_disp(image,"Image resized");
//This last part of code is not usfeul for you, it is only used to display the resized image
while (!main_disp.is_closed())
main_disp.wait();
return 0;
}
でしょうか?ファイルを開くには?データを読むには?あなたのANNライブラリが期待するどんなフォーマットにでもデータを変換するには?もっと正確にしてください。複数の問題がある場合は、複数の質問を開くことができます。実際の問題の数を可能な限り1に近づけるためにこれを行います。 – moooeeeep
@moooeeeep私は自分の質問を更新しました。それが良いかどうか見てください。 – Patryk
Xの6番目のピクセルとYのすべての3番目のピクセルを取ります。エレガントではありませんが、より良い解決ソリューションを見つけるまで、最初のパスとして機能します。 –