MATLAB ヘルプ センター
ブロック化イメージ データストアから全データを読み取る
R2021a 以降
b = readall(bimds)
b = readall(bimds) は、blockedImagesDatastore と bimds から全データを読み取ります。readall は、各ブロックの要素を含んだ cell 配列である b を返します。読み取りの都度返ってくるデータはすべて垂直に連結できなければなりません。出力のデータ型は read メソッドのデータ型と同じでなければなりません。
b
bimds
blockedImagesDatastore
readall
read
例
すべて折りたたむ
ブロック化されたイメージを作成します。blockedImage オブジェクトは、イメージを 1,024 x 1,024 の大きさのブロックから成る 5 行 6 列のグリッド (合計 30 ブロック) に分割します。
blockedImage
bim = blockedImage('tumor_091R.tif');
ブロック化されたイメージから blockedImageDatastore を作成します。
blockedImageDatastore
bimds = blockedImageDatastore(bim);
blockedImageDatastore からすべてのブロックを読み取ります。オブジェクト関数 readall は、30 ブロックを含んだ cell 配列を返します。
b=30×1 cell array {1024×1024×3 uint8} {1024×1024×3 uint8} {1024×1024×3 uint8} {1024×1024×3 uint8} {1024×1024×3 uint8} {1024×1024×3 uint8} {1024×1024×3 uint8} {1024×1024×3 uint8} {1024×1024×3 uint8} {1024×1024×3 uint8} {1024×1024×3 uint8} {1024×1024×3 uint8} {1024×1024×3 uint8} {1024×1024×3 uint8} {1024×1024×3 uint8} {1024×1024×3 uint8} ⋮
すべてのブロックを表示します。
montage(b)
ブロック化イメージ データストア。blockedImageDatastore オブジェクトとして指定します。
blockedImageDatastore からのデータ。長さが ReadSize のブロック データの cell 配列として返されます。
ReadSize
R2021a で導入
blockedImage | blockedImageDatastore
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ