Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'List Data manipulation' topicStudent Support Forum > General > Archives > "List Data manipulation"

Next Comment >Help | Reply To Topic
Author Comment/Response
Simon Parry
02/26/99 06:13am

I am attempting to create a image processing routine, but I am falling down at the hurdle when trying to create a pixel by pixel loop.

I have a list of numerical data
ie {{0,0,1,0,0},{1,2,3,2,1},{2,3,4,3,2}, etc (not all lists will be same dimension)

I already have a sufficient If[] loop which will do the required summation, but I can only specify one pixel at a time from the data.

ie If[source[[1,3]]<9,+3,If[source[[1,3]]>9,+4,-4]

How could I get a generic If[] loop which could manipulate a list of data length n, to travel through the data, pixel by pixel to create a new set of data manipulated from the first?

Please can you help

Thanks in advance


URL: ,

Subject (listing for 'List Data manipulation')
Author Date Posted
List Data manipulation Simon Parry 02/26/99 06:13am
Re: List Data manipulation Forum Modera... 02/28/99 4:55pm
Next Comment >Help | Reply To Topic