Create a phantom image

4 次查看(过去 30 天)
Asima Warner
Asima Warner 2017-10-31
评论: Rik 2017-11-1
I am trying to create a phantom image for my Shepp-Logan image. It needs to be 200 by 200 pixels. I have used this code:
P = phantom('Modified Shepp-Logan',100); imshow(P)
And am coming out with this error: Index exceeds matrix dimensions.
Would anyone be able to explain why/what this error is, and how I can fix it?
  9 个评论
Asima Warner
Asima Warner 2017-10-31
I ended up changing the name of the image, just in case. I am still getting the error even after I cleared the variables and only run that code. It is still saying the index exceeds matrix dimensions.
Rik
Rik 2017-11-1
Can you show the output of these two lines of code before and after you try to run you code?
which -all phantom
which -all P

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by