My iPhone 11 is perfectly fine, but the new buttons on the iPhone 16 are compelling
デジタルなデータはアナログに比べて比較しやすい。テキストを比較してその差分を取ったりするのは、開発者の人であれば誰しもが利用していることだろう。比較することに寄ってどこが変わったのか一目で分かり、理解が進むようになる。 差分 とは言え、一般的に利用されているのはテキストがメインの状態だ(動画の技術でも利用はされているが)。そこで次のステップアップ、画像に適用してみよう。 今回紹介するオープンソース・ソフトウェアはPerceptual Image Diff、画像同士の差分を解析するソフトウェアだ。 画像という一見アナログ的なもの同士を比較するのがPerceptual Image Diffだ。コンソールで動作するソフトウェアで、WindowsやMac OSX、Linuxなどをサポートしている。二つの画像を比較して、その結果をPPM形式で保存してくれる。 比較した画像 比較できるのはTIFFまた
今年の前半に発表された画像をリサイズするためのアルゴリズム「Seam Carving」。画像の横幅を変えても、メインになり得る部分を自動で認識し、そこを維持してくれる。 Youtubeの動画にもアップされているので、見たことがある人も多いのではないだろうか。リアルタイムで縮小されていく様は相当なインパクトだ。アルゴリズム自体はそれ程複雑でもないらしく、実装している人も多くいる。その一つを紹介しよう。 今回紹介するオープンソース・ソフトウェアはseam-carver、CUIベースで動作するSeam Carvingだ。 seam-carverはPPMファイルを読み込んで、解析と新しいファイルの生成を行う。デフォルトでは元の横幅から20ピクセル減らした所まで1ピクセルずつ生成していく。そこを適当に変更すれば、自分好みの画像も生成できる。 できあがった画像を見れば分かるが、非常に良く出来ている。き
これは面白い! 一つの写真の中には幾つもの色が使われている。赤い花の写真を撮っても、背後には空や草の色が入ってくる。当たり前だが、この花をさらに際立たせることができるのがこれだ。 今回紹介するオープンソース・ソフトウェアはTint、画像から色情報を分離するソフトウェアだ。 Tintではある写真を指定して、その中で使われている色を取り出すことができる。その結果、似た色だけが抽出され、他の色は白黒になった写真ができあがる。 これはなかなか面白い効果が期待できる。一部を目立たせるのはもちろん、白黒+類似色のみという新しい写真の見え方も得られる。白黒写真とはまた違った楽しさがありそうだ。 色情報のグルーピング数や品質のパラメータを変更して最適なデータ抽出状態を割り出してみよう。面白い結果が得られるはずだ。 また、幾つかの情報に分離して、それを合成することもできる。一部の色合いだけ除いた写真も作成で
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く