たくさんの写真で,同じ写真を自動的に省くコードってありますか?
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
たくさんの写真で,同じ写真を自動的に省くコードってありますか? 例えば,明らかに無駄な画像の組み合わせを整理したいですが 画像の対応付けをいかに効率よくサボるかの方法論を提案していただきたいです
댓글 수: 3
Walter Roberson
2017년 1월 7일
Approximate translation
Is there a code that automatically eliminates the same picture with many pictures? For example, I'd like to organize clearly useless image combinations, but I would like you to propose a methodology on how to effectively map the correspondence of images
koji Akano
2017년 1월 8일
Walter Roberson
2017년 1월 8일
If you were to consider the images as being frames from a video, then if the change frames was small you could say it was the same picture for your purpose. There are a number of algorithms for calculating changes between frames, such as h.264
답변 (1개)
Takuji Fukumoto
2017년 1월 8일
同じ写真(=輝度データが同じ)を見つける方法として、Image Processing Toolboxの関数で画像の差分を取り、0もしくはある値より小さければ一致とすることができるでしょう。
Z = imsubtract(X,Y)
部分一致のようなものも想定している場合は、Computer Vision System Toolboxのテンプレートマッチのオブジェクト等を利用できます。 https://jp.mathworks.com/help/vision/ref/vision.templatematcher-class.html
一致するものが見つかれば copyfileやmovefileで移動すればよいです。
どういう条件で画像が集められているかわかりませんが、 画像の量が多い場合組み合わせも大きくなるので、処理量を減らす工夫があったほうがいいかもしれません。
댓글 수: 2
koji Akano
2017년 1월 8일
Takuji Fukumoto
2017년 1월 9일
今ある情報からはコメントが難しいですね。
下記のリンクに質問の仕方が書いてあります。 https://jp.mathworks.com/matlabcentral/answers/309720-tutorial-matlab-answers-tips-for-asking-good-questions-to-get-accurate-answers-q
記載があるとおり、アルゴリズムがあるのであれば、入力データと試したスクリプト、○○の結果にしたいがxxになってしまう、を紹介されると回答者とシンプルにやりとりができ、いろんな人が助けてくれると思いますよ。
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!