画像をグレースケールとして開き、numpy float 配列に変換し、多くの数学演算を実行し、正規化してバイナリ画像 (1 ピクセルあたり 1 ビット) に変換し、再度ディスクに保存するコードを Python で持っています ( PNG ファイル)。
同様の操作を実行するには、どの .NET クラスを (できれば) 使用する必要がありますか?
以下は、私の Python コードのサブセットです。
im = Image.open(in_name)
a = numpy.asarray(im.convert('L'), dtype=float) ## implicit conversion to grayscale
## lots of element-wise arithmetical operations with 'a'
## and other similar-shaped arrays from other images
out_im = Image.fromarray(a.astype('uint8')).convert('1')
out_im.save(out_name)