Modify Outline Thickness

Hi
I am new to forum so hope this is right format.

I am using ImageJ and Analyse Particles to batch count the number of images on scanned image of microfiche and superimpose a count number of each image. Here is macro:

source_dir = getDirectory("Source Directory"); 
dest_dir = getDirectory("Dest Directory"); 

setBatchMode(true); 

processFolder(source_dir, dest_dir);
saveAs("Results", source_dir + "\\Summary.csv");
  

function processFolder(source_dir, dest_dir) {

    extension = ".jpg";
    list = getFileList(source_dir);
     
 

    for (i=0; i<list.length; i++) {
        fl = toLowerCase(list[i]);   
        if (endsWith(fl, extension))
                processImage(source_dir, dest_dir, list[i]);
     }
  
} 

function processImage(source_dir, dest_dir, name) {

    imgFile = source_dir+"/"+name; 
    open(imgFile);
     
    w = getWidth();
    h = getHeight(); 

	run("Select All");
	run("Copy");   
    
	makeRectangle(0, 0, 60, h-1);
	setForegroundColor(255, 255, 255);
	run("Fill", "slice");

	makeRectangle(w-60, 0, w-1, h-1);
	setForegroundColor(255, 255, 255);
	run("Fill", "slice");

	makeRectangle(0, h-90, w-1, h-1);
	setForegroundColor(255, 255, 255);
	run("Fill", "slice");

	run("Labels...", "color=white font=80 show bold");
    
	
    run("Sharpen");    
    setAutoThreshold("Default")
;
    run("Threshold...");
    setThreshold(0, 190);
    setOption("BlackBackground", false);
    run("Convert to Mask");
    run("Close");
    run("Fill Holes");
    run("Analyze Particles...", "size=7000-Infinity circularity=0.10-1.00 display exclude clear include summarize add");

	run("RGB Color");
     run("Line Width...", "color=white line=100");
	run("Paste");   
	run("Flatten");
	saveAs("Jpeg", dest_dir+"/"+name);
	
} 

How can I change the thickess and colour of the detected outline in the analyse particles stage?

Thanks

Graham

Use Overlays which have a option to adjust the thickness and color:

Image :arrow_forward:Overlay :arrow_forward: Overlay options

See:

http://imagej.net/docs/guide/146-28.html#fig:image-overlays

Useful example:

http://imagej.1557.x6.nabble.com/Analyze-Particles-opens-the-ROI-manager-td5014322.html

I should also mention the ROI Color Coder in the BAR plugin:

http://imagejdocu.tudor.lu/doku.php?id=macro:roi_color_coder

Thanks you for the assistance.

Not sure how I missed that but I am still on my L plates regarding ImageJ

Cheers