Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
LibTiff を使用してモノクロ tiff 画像を処理すると、「サンプルあたりのビット数」パラメーター: TIFFTAG_BITSPERSAMPLE を読み取ることができます。16 を返す場合、そのようなイメージの実際の「ピクセルあたりのビット数」の値は 9 から 16 までの任意の値である可能性があり、ほとんどの場合、これは 10、12、14、または 16 です。この値を保持する tiff イメージ タグはありますか?
MaxSampleValue タグは、各サンプルの最大値 (各ピクセルを構成する N 個のサンプル) を提供するため、存在する場合はこれを使用して、サンプル値を表すために必要なビット数を決定できます。これは基本的に ceil(log2(x)) で、x はサンプルの MaxSampleValue タグ値です。