One of the main purposes of a ImageJ macro/script is to perform repetitive tasks. In programming languages (and in IJ script), this can be done by using a specific iterative mechanism: the loop.
Tuesday, August 23, 2011
Drawing a chessboard v3.0
The ImageJ scripting language is really powerful. Here is an application in my series Drawing a chessboard...
Labels:
chessboard,
ImageJ,
macro,
script
Drawing a chessboard with IJ script
Drawing a chessboard is a good exercise because you need all the basic tools of programming language: loops and conditional statement.
Labels:
chessboard,
ImageJ,
macro,
script
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.
Thursday, August 11, 2011
Conserver un historique de ses commandes: 'Recorder'
Après divers tâtonnements (une vingtaine de fenêtres sont ouvertes), l'application de plusieurs traitements (correction de luminosité / contraste, filtres, etc.), votre image est correctement traitée et son analyse vous donne entière satisfaction ... mais au moment de refaire la même chose sur une autre image, vous ne vous souvenez plus de la procédure et des paramètres que vous avez utilisés.
Il existe pourtant un moyen - peu utilisé - pour garder un historique de ces commandes: le Recorder. C'est aussi un bon moyen de s'initier à la programmation avec le langage Macro d'ImageJ.
Subscribe to:
Posts (Atom)