Showing posts with label script. Show all posts
Showing posts with label script. Show all posts

Thursday, February 14, 2013

Programming in JavaScript



Table of Contents of a series dedicated to the use of JavaScript for developing scripts in ImageJ.


Monday, November 19, 2012

Drawing a chessboard in JavaScript


Programming with ImageJ is really easy with the built-in macro language. However, for some more sophisticated scripts, it is - sometimes - interesting to access low-level functions only available in the ImageJ programming interface (I mean only available for Java programmers). For fast prototyping, a good alternative is the use of the JavaScript language.

Wednesday, September 12, 2012

Learning IJ scripting language: Part II



IJ Scripting Language - Part II: Table of Contents

In this series of posts, more programming techniques of the ImageJ scripting macro language are detailed...


Wednesday, May 23, 2012

Drawing a chessboard using Stack Tools




A really non optimized way for Drawing a Chessboard but a good opportunity to explore the functions available in Image > Stacks, specially those located in the submenu Stacks > Tools.

Saturday, December 24, 2011

Test image: bump and hill




A simple test image useful to try various algorithms of gradient, edge detection,...

Friday, December 23, 2011

Drawing arrows in IJ script



Drawing arrows in a ImageJ macro/script is sometimes useful to display direction of a feature (oriented lines of interest, gradient,etc.)  but this simple drawing isn't so straightforward...


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.

Monday, December 5, 2011

Fade-in, Fade-out, Dissolve video effects





When working on videos (stacks in ImageJ), it is always interesting to make transitions between video clips to finalize a small movie .... and that's possible with ImageJ.

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, November 25, 2011

Numbers: binary, decimal, hexadecimal


Numbers used by computers and by extension by programming languages can be represented in different radix (base). Usually, the decimal notation is the most convenient - specially for human beings - but in certain circumstances, it's better to use the binary or hexadecimal notations.

Thursday, November 10, 2011

Drawing a chessboard from a 2x2 unit cell



In my series Drawing a chessboard, a simple way to build the chessboard from a 2x2 unit cell. 

Thursday, October 27, 2011

Drawing a chessboard using boolean operators



A small use of boolean operators to draw my favorite chessboard and also a good example to use other functions like geometrical transforms.

Monday, October 24, 2011

Drawing a chessboard: Table of Contents



Through several examples, this series Drawing a chessboard - a simple and graphical object - is a very good opportunity to explore the built-in functions of the scripting language and the various operations and tools available in the ImageJ menus.

Saturday, October 8, 2011

Drawing a chessboard using ImageJ array



My chessboard series continues with a new script based on arrays and how we can use them in ImageJ.


Saturday, September 24, 2011

Test image: sawtooth wave




After the square wave [see post], another test image whose plot profile corresponds to a sawtooth wave [Wikipedia].

Friday, September 23, 2011

Test image: square wave



To try new features of ImageJ or debug a macro/script, there is always a need of test images. Here is a simple script to create one of them...

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

If the Array and List data structures are too limited in one of your IJ script, there is an interesting alternative for storing a data collection: The Results which is a specific window (tool?) working like a very basic spreadsheet...

Friday, September 2, 2011

Learning ImageJ scripting language


T a b l e   o f   c o n t e n t s

Once you are familiar with the various tools and menus of ImageJ, it's time to move to the dark side of the force and to start using the programming features of IJ via its macro/script. That's really useful specially if you have repetitive tasks and/or if you need precise data exploration.
Don't worry, learning a programming language is not so complicated and ...May the Force be with you...

Drawing a chessboard v2.1

This version of my series Drawing a chessboard is a minor update of the version 2.0 and is only different because it contains one loop to scan the image.