开发者

Matlab - what kind of file am I dealing with?

开发者 https://www.devze.com 2023-02-28 17:56 出处:网络
I perform q = load(\'filepath\') q = groundtruth: [16x16 double] observations: [16x16 double] What is q? Is it not a matrix?

I perform

q = load('filepath')

q = 

     groundtruth: [16x16 double]
    observations: [16x16 double]

What is q? Is it not a matrix?

This is a binary image, and I expected to see a matrix. In this particular problem, we are dealing with a true image(groundtruth) and a noisy o开发者_Go百科bervation(observations). So I assume the file actually contains 2 binary images, but what is q? What am I getting, and how do I manipulate it?


q is a structure array, containing both your images. To access/manipulate structures you use the notation "structure.field". So in your case, if you want to show the groundtruth image, just write

imshow(q.groundtruth)

0

精彩评论

暂无评论...
验证码 换一张
取 消