Showing posts with label array. Show all posts
Showing posts with label array. Show all posts
Tuesday, December 6, 2011
Using images as arrays in script
In my previous posts Using arrays in script... [TOC], we have seen in Part 1 how to store data in arrays using the built-in function newArray(...) and in Part 2, the use of Table windows (Results [Link] or any Table window [Link]). Here I'll describe how data storage can be done via images and how this technique is powerful for large arrays.
Friday, December 2, 2011
The sieve of Eratosthenes
Finding prime numbers is a good exercise to improve your skills in the programming scripting language of ImageJ. Moreover, that's a good opportunity to use a 2D image as a temporary array.
Friday, September 9, 2011
Using arrays (part 2.1): Table window
The Results window [see post] is a 'must' in ImageJ for storing numbers like a spreadsheet and also contains tools to explore the data. A more generalized multicolumn window exists in ImageJ termed the Table window which is very useful specially if you need to play with strings and numbers.
Using arrays in script (part 2.0): Results window
Monday, August 22, 2011
Using an iterator in ImageJ
Scanning all the pixels of an image to modify values or get some features is a common task when you develop scripts in ImageJ ... unfortunately, if your code contains too many loops, it will become difficult to read and debug . This can be improved using the function Process > Math > Macro... mimicking an iterator object found in modern programming languages.
Subscribe to:
Comments (Atom)
