Bonjour,
j''ai un problème sur ma création de macro dont le but est de faire un filtre median puis une analyse de particules , le tout en affichant la boite de dialogues pour rentrer les paramètres de cette dernière.
à la ligne 35 (if (display == true) type = type + " display ";) j'ai une erreur
qui dit qu'un nombre ou une fonction numérique est attendue à dans cette ligne.??????!!!
voilà la macro:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 macro "macro7bis" { run("Cell Colony (31K)"); run("Make Binary"); run("Median...", "radius=2"); // parametre analyze //Infinity=1.0/0.0 size=0.00 - 999999 circularity=0.00 -1.00; Dialog.create("Analyze"); Dialog.addChoice("Show:", newArray("nothing", "outlines", "bare outline", "ellipse","mask","count mask","overlay out","overline mask")); Dialog.addNumber("Size:", 0-999999); Dialog.addNumber("Circularity:", 0.00-1.00); Dialog.addCheckbox("Display ", true); Dialog.addCheckbox("Clear", true); Dialog.addCheckbox("Summarize", false); Dialog.addCheckbox("Add", true); Dialog.addCheckbox("Exclude", false); Dialog.addCheckbox("Include", false); Dialog.addCheckbox("Record ", false); Dialog.addCheckbox("In_situ ", false); Dialog.show(); // title = Dialog.getString(); size = Dialog.getNumber(); circularity = Dialog.getNumber();; show = Dialog.getChoice(); display = Dialog.getCheckbox(); if (display == true) type = type + " display "; clear = Dialog.getCheckbox(); if (clear ==true) type = type + " clear "; summarize = Dialog.getCheckbox(); if (summarize==true) type = type + " summarize"; add = Dialog.getCheckbox(); if (add ==true) type = type + " add"; exclude = Dialog.getCheckbox(); if (exclude ==true) type = type + " exclude "; include = Dialog.getCheckbox(); if (include ==true) type = type + " include "; record = Dialog.getCheckbox(); if (record ==true) type = type + " record "; in_situ = Dialog.getCheckbox(); if (in_situ ==true) type = type + " in_situ"; run("Analyze Particles...", "size=&size circularity=&circularity show=&show display=&display exclude=&exclude clear=&clear include=&include record=&record add=&add in_situ=&in_situ"); }
