The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: What happend to Image?
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Alexei Boulbitch

Posts: 483
Registered: 2/28/08
What happend to Image?
Posted: May 8, 2013 4:09 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Dear Community,

I just noticed that the function Image[ ] has unexpectedly changed since 9.0.0.

Some time ago I have written a handy program working with the image. I have once published it here. Among others this program applied the operation


Where image was the image in use and size has been a parameter equal to a desired ImageSize option. This worked previously. Now it does not.

I checked that the Image indeed has changed somehow.

Let us load any image. For example, this:

lena = Import["ExampleData/lena.tif"]

One may check that this is indeed an image:



Let us do like this:

lena2= Image[lena, ImageSize -> 300]

then the {{4,2}} part should memorize its size.

One may look at its TreeForm (evaluate this and make sure that it has levels 0, 1, and 2), and {{4,2}} is indeed 300


However, if one would evaluate this


he get the message
Part::partd: Part specification... is longer than depth of object\""

Not only {{4,2}}, but also other leaves of the tree are not acceccible.

What happened to the Image?


Alexei BOULBITCH, Dr., habil.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG

Office phone : +352-2454-2566
Office fax: +352-2454-3566
mobile phone: +49 151 52 40 66 44


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.