Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'entropy of an image' topicStudent Support Forum > General > Archives > "entropy of an image"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Daniele Lupo
10/22/07 09:47am

image = Import["image.png"]

This command import the image as a raster graphics. To obtain data, you must extract them.

imageData = image[[1,1]];

After this, you obtain a matrix, which elements are single numbers if the image is in grayscale, and an RGB triplet if image is coloured. Having this matrix, you can manipulate it with your formula.

URL: ,

Subject (listing for 'entropy of an image')
Author Date Posted
entropy of an image vicky 09/16/07 4:47pm
Re: entropy of an image Clusty 10/19/07 4:00pm
Re: entropy of an image Daniele Lupo 10/22/07 09:47am
< Previous CommentHelp | Reply To Comment | Reply To Topic