フィルターのクリア

What is the way to create and save files?

4 ビュー (過去 30 日間)
niniki
niniki 2022 年 2 月 25 日
回答済み: yanqi liu 2022 年 2 月 25 日
Image1.raw and image2.raw of 1500x15000 size are attached together.
I made an image of 3000x15000 size.
To save this as a raw file,
saveas(img,'image.raw');
I used the code.
"It's not a valid handle." ' The phrase came out and was not created.
What is the way to create and save files?

採用された回答

yanqi liu
yanqi liu 2022 年 2 月 25 日
yes,sir,may be use fwrite/fread to make raw file,such as
im = imread('rice.png');
figure; imshow(im, []);
fid = fopen('a.raw','w');
fwrite(fid,im);
fclose(fid);
fid2 = fopen('a.raw');
im2 = fread(fid2);
fclose(fid2);
im2 = reshape(im2, 256, 256);
figure; imshow(im2, []);

その他の回答 (1 件)

KSSV
KSSV 2022 年 2 月 25 日
You have to use imwrite. Read about it.

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by