<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Image-Pro Plus Automation with Macros — Media Cybernetics Image Analysis Forums</title>
        <link>https://forums.mediacy.com/</link>
        <pubDate>Sat, 16 May 2026 21:28:54 +0000</pubDate>
        <language>en</language>
            <description>Image-Pro Plus Automation with Macros — Media Cybernetics Image Analysis Forums</description>
    <atom:link href="https://forums.mediacy.com/categories/image-pro-plus-automation-(macros-apps-reports)/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Export an array to excel range in image pro 4.5</title>
        <link>https://forums.mediacy.com/discussion/1356/export-an-array-to-excel-range-in-image-pro-4-5</link>
        <pubDate>Wed, 30 Jul 2025 17:26:24 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>obie</dc:creator>
        <guid isPermaLink="false">1356@/discussions</guid>
        <description><![CDATA[Hi:<br />We are using a legacy version of image pro - 4.5.1.<br />We are desiring to export an array of data obtained from a line profile into an excel sheet as a range - all in one fell swoop.  Our current method does this but one cell at a time.  This is time consuming and resource consuming.  We run out of memory very quickly.  Is there a way to export an array obtained in image pro to a range in excel all at one time and without stalling due to overwhelming computer resources?]]>
        </description>
    </item>
    <item>
        <title>How can I get the batch processing tool for Image-Pro Plus 5.0?</title>
        <link>https://forums.mediacy.com/discussion/161/how-can-i-get-the-batch-processing-tool-for-image-pro-plus-5-0</link>
        <pubDate>Tue, 14 Jan 2014 12:05:02 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>lavilehm</dc:creator>
        <guid isPermaLink="false">161@/discussions</guid>
        <description><![CDATA[Hey,<br />I need the batch processing tool for my exam-work. But at the University, there is only Image-Pro Plus 5.0 installed. Is there any possibility to get the tool?<br /><br />Thanks a lot for help.<br />Lavinja<br />]]>
        </description>
    </item>
    <item>
        <title>Controlling where you post Excel data</title>
        <link>https://forums.mediacy.com/discussion/62/controlling-where-you-post-excel-data</link>
        <pubDate>Fri, 21 Jun 2013 00:31:24 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>NickB</dc:creator>
        <guid isPermaLink="false">62@/discussions</guid>
        <description><![CDATA[<p>(Originally posted by Laura on 6/13/2006)</p><p>When i send my data to excel, it doesn't start at the top of the sheet, but instead writes it further down apparently where it last left off. So i'm stuck with a large amount of blank cells heading my data.</p><p> </p>]]>
        </description>
    </item>
    <item>
        <title>Question about zoom settings (Image Plus 7)</title>
        <link>https://forums.mediacy.com/discussion/1259/question-about-zoom-settings-image-plus-7</link>
        <pubDate>Wed, 18 Jan 2023 00:41:34 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>StanleyH</dc:creator>
        <guid isPermaLink="false">1259@/discussions</guid>
        <description><![CDATA[<img src="https://us.v-cdn.net/5020878/uploads/editor/2a/kjd1pco9dvea.png" alt="" title="Image: https://us.v-cdn.net/5020878/uploads/editor/2a/kjd1pco9dvea.png" srcset="https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=300, width=300/5020878/uploads/editor/2a/kjd1pco9dvea.png 300w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=600, width=600/5020878/uploads/editor/2a/kjd1pco9dvea.png 600w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=800, width=800/5020878/uploads/editor/2a/kjd1pco9dvea.png 800w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=1200, width=1200/5020878/uploads/editor/2a/kjd1pco9dvea.png 1200w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=1600, width=1600/5020878/uploads/editor/2a/kjd1pco9dvea.png 1600w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=2000, width=2000/5020878/uploads/editor/2a/kjd1pco9dvea.png 2000w, https://us.v-cdn.net/5020878/uploads/editor/2a/kjd1pco9dvea.png" sizes="100vw" /><img src="https://us.v-cdn.net/5020878/uploads/editor/4l/sw9h6ct4axud.jpg" alt="" title="Image: https://us.v-cdn.net/5020878/uploads/editor/4l/sw9h6ct4axud.jpg" srcset="https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=300, width=300/5020878/uploads/editor/4l/sw9h6ct4axud.jpg 300w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=600, width=600/5020878/uploads/editor/4l/sw9h6ct4axud.jpg 600w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=800, width=800/5020878/uploads/editor/4l/sw9h6ct4axud.jpg 800w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=1200, width=1200/5020878/uploads/editor/4l/sw9h6ct4axud.jpg 1200w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=1600, width=1600/5020878/uploads/editor/4l/sw9h6ct4axud.jpg 1600w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=2000, width=2000/5020878/uploads/editor/4l/sw9h6ct4axud.jpg 2000w, https://us.v-cdn.net/5020878/uploads/editor/4l/sw9h6ct4axud.jpg" sizes="100vw" /><br /><br />Hi Specialist:<br />                     I made a macro to capture the image and analysis. One image is live preview window with 50% zoom, the other image is captured window but 100% zoom. I can set the captured window to 50% zoom by clicking the right button but it is inconvenient as it will return to 100% next time. Have you idea how to set to make the captured window to 50% as well. Thank you.]]>
        </description>
    </item>
    <item>
        <title>Measure an Object or Cell with Varying Intensity - Image-Pro Plus</title>
        <link>https://forums.mediacy.com/discussion/1066/measure-an-object-or-cell-with-varying-intensity-image-pro-plus</link>
        <pubDate>Thu, 16 Apr 2020 20:54:21 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>Danielro</dc:creator>
        <guid isPermaLink="false">1066@/discussions</guid>
        <description><![CDATA[Hi there.<br />I am trying to measure the intensity of an object as a function of the distance from its center, and the Youtube video with the above name looked ideal for my task.<br />By any chance may I have a copy of the ring_measurement macro that was referred to in that video?<br /><br />Sorry if this is discussed somewhere else and I am not seeing it....<br />Thanks a lot!<br />Daniel (University of Medicine and Pharmacy of Craiova, Romania).]]>
        </description>
    </item>
    <item>
        <title>IpProfSave(&quot;&quot;, S_DDE) - set column</title>
        <link>https://forums.mediacy.com/discussion/57/ipprofsave-s-dde-set-column</link>
        <pubDate>Fri, 21 Jun 2013 00:11:40 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>NickB</dc:creator>
        <guid isPermaLink="false">57@/discussions</guid>
        <description><![CDATA[<p>(Originally posted by Optiker on 12/27/2005)</p><p>In passing data to an Excel worksheet, I found the command IpProfSave("", S_DDE) by recording a macro. I didn't find that command in HELP/Macro Language.</p><p>I would like to reset the location of the upper-left corner of the data array to (1,1) in the worksheet each time I run the macro, but need to step one column at a time as the macro loops.</p><p>In the Profile File/DDE Options window, if I check "Append Data set to the right" I get the columns stepping as I loop. But, the next time I run the macro, it picks up in the column to the right of where it left off.</p><p>How do I reset the column number to 1 each time I run the macro? It must be documented some place, but I didn't find it, and I'm not understanding the HELP section on DDE enough to know what to do. Can anybody help with the lines of code I need to reset the column to 1 each time I run the macro?</p>&#13;
]]>
        </description>
    </item>
    <item>
        <title>Identifier is already in use error.</title>
        <link>https://forums.mediacy.com/discussion/961/identifier-is-already-in-use-error</link>
        <pubDate>Fri, 28 Dec 2018 17:36:18 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>Heliman</dc:creator>
        <guid isPermaLink="false">961@/discussions</guid>
        <description><![CDATA[For some reason all macros including creating new ones no longer work. I am getting an "Identifier is already in use". It is referencing the script file\Default.ipm  Line 76.<br />I did see another post on solving this however it did not work. Any help would be appreciated.]]>
        </description>
    </item>
    <item>
        <title>How can I get the name of the open file into a string variable?</title>
        <link>https://forums.mediacy.com/discussion/952/how-can-i-get-the-name-of-the-open-file-into-a-string-variable</link>
        <pubDate>Wed, 05 Dec 2018 04:28:18 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>David</dc:creator>
        <guid isPermaLink="false">952@/discussions</guid>
        <description><![CDATA[Hi there<br /> I have designed a Macro in which I do some measurements in some images and I want to automatically save the measurement files (*.iqm) into the same folder with the same name of the file. However to do that I need to put together the PATH of the image and the NAME of the image and the iqm extension to then save the measurement file.<br /><br />Any help would be highly appreciated.]]>
        </description>
    </item>
    <item>
        <title>LowPassFilter Kernel</title>
        <link>https://forums.mediacy.com/discussion/936/lowpassfilter-kernel</link>
        <pubDate>Thu, 04 Oct 2018 09:57:39 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>dhavas</dc:creator>
        <guid isPermaLink="false">936@/discussions</guid>
        <description><![CDATA[HI all, <br /><br />We realized that the outcome of the Low Pass filter changed from version 9.1.5 to 9.3. <br /><br />We use this script part below to subtract a low pass image from the original to correct background in some cases. <br />(note that your inbuilt BG correction function do not always work on large images and even worse without throwing an error)<br /><br />Anyway the method below leads to different results in the two version. <br /><br />Can we harmonize? Is there a way to get the Kernel into it? (did not find a valid command for that). <br />Or is there a library I could add to 9.1.5?<br /><pre spellcheck="false" tabindex="0">Public Function LPBGCorrect() As SimpleScript&#13;
        LPBGCorrect = New SimpleScript&#13;
&#13;
        Dim  doc3, image1, doc2, image2, window1,&#13;
     Dim LPFiltersize = 1001<br />&#13;
&#13;
        With Application.DocumentCommands.Active(LPBGCorrect)&#13;
            .Run(doc3)&#13;
        End With&#13;
&#13;
        With Adjust.ImageCommands.Duplicate(LPBGCorrect)&#13;
            .Name = "Temp"&#13;
            .Visible = True&#13;
            .Run(doc3, image1)&#13;
        End With&#13;
&#13;
        With Application.DocumentCommands.Activate(LPBGCorrect)&#13;
            .Run(image1, doc2)&#13;
        End With&#13;
&#13;
        With Process.Filter.LargeCommands.LowPassLarge(LPBGCorrect)&#13;
            .Passes = 1&#13;
            .Width = LPFiltersize&#13;
            .Height = LPFiltersize&#13;
            .LockWidthHeight = True&#13;
            .Run(image1, image1)&#13;
        End With&#13;
&#13;
        With Application.DocumentCommands.Activate(LPBGCorrect)&#13;
            .Run(doc3, doc3)&#13;
        End With&#13;
&#13;
        With Process.ProcessCommands.Operations(LPBGCorrect)&#13;
            .Operation = eOperation.Subtract&#13;
            .NumberValue = 0R&#13;
            .ResultType = eResultType.Apply&#13;
            .Run(doc3, image1, image2)&#13;
        End With&#13;
&#13;
        With Application.DocumentCommands.Activate(LPBGCorrect)&#13;
            .Run(doc2, doc2)&#13;
        End With&#13;
&#13;
        With Application.WindowCommands.Define(LPBGCorrect)&#13;
            .Run(doc2, window1)&#13;
        End With&#13;
&#13;
        With Application.WindowCommands.Close(LPBGCorrect)&#13;
            .Run(window1)&#13;
        End With&#13;
&#13;
        With Application.DocumentCommands.Activate(LPBGCorrect)&#13;
            .Run(doc3, doc3)&#13;
        End With&#13;
&#13;
    End Function</pre>Many thanks<br /><br />Daniel]]>
        </description>
    </item>
    <item>
        <title>How to draw an AOI, dilate it, bring it back and measure color intenisty in the new AOI</title>
        <link>https://forums.mediacy.com/discussion/922/how-to-draw-an-aoi-dilate-it-bring-it-back-and-measure-color-intenisty-in-the-new-aoi</link>
        <pubDate>Tue, 21 Aug 2018 08:03:55 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>Danielro</dc:creator>
        <guid isPermaLink="false">922@/discussions</guid>
        <description><![CDATA[<p>Hi there,</p>&#13;
&#13;
<p>I am running IPP 7.0 and I would need some guidance on&#13;
transferring outlines to AOIs.</p>&#13;
&#13;
<p>I have a fluorophore (green) that is staining in the close&#13;
proximity of blood vessels (red). I would like to measure the&#13;
intensity of the green color around the blood vessel and not all the green&#13;
staining in a given rectangle that I might draw by hand around the vessel.</p>&#13;
&#13;
<p>So I was thinking of the following algorithm:</p>&#13;
&#13;
<p><span><span>-         &#13;
</span>Draw AOI of the vessels (by hand or by using the&#13;
red channel).</span></p>&#13;
&#13;
<p><span><span>-         &#13;
</span>Convert the AOI to an object</span></p>&#13;
&#13;
<p><span><span>-         &#13;
</span>Apply a Dilation morphological filer to the object&#13;
so that its contour grows with the same number of pixels in all directions.</span></p>&#13;
&#13;
<p><span><span>-         &#13;
</span>Convert back the resulting object to AOI and&#13;
overlay it on the original image</span></p>&#13;
&#13;
<p><span><span>-         &#13;
</span>Measure the green intensity in the new (dilated)&#13;
AOI.</span></p>&#13;
&#13;
<p><span><span>-         &#13;
</span>Ideally I would like to substract the original&#13;
AOI from the dilated one in order to analyze only the ring area around the&#13;
vessel!</span></p>&#13;
&#13;
<p>What I did until now was to (1) define first an AOI&#13;
(freehand or by channel color), (2) convert the AOI to objects, (3) in the&#13;
Count/Size menu Make Mask, and thus obtain a new image with my AOI as an object.&#13;
(4) Next on this binary image I applied a dilate morphological filer and the&#13;
mask grew eccentrically from the original outline with the same number of&#13;
pixels in al directions. (5) I used the automated threshold (Count/Size) to&#13;
select the dilated AOI, (6) then Count to generate an object, then (7) I saved&#13;
the outlines of the object, and lastly, on the original image (8) load&#13;
outlines. But here the problem is that I cannot make the measurement only&#13;
inside the outline…</p>&#13;
&#13;
<p>Please, if you have any ideas how this might work best, I&#13;
would greatly appreciate it!</p>&#13;
&#13;
<p><span>I am not so good with writing a macro but I can record it&#13;
very easily in IPP once the workflow is working, so could you please direct me to menu commands?</span></p>&#13;
&#13;
<p>Thanks so much from now!</p>&#13;
&#13;
<p><span>Daniel</span></p>]]>
        </description>
    </item>
    <item>
        <title>Need Assistance Automating operation</title>
        <link>https://forums.mediacy.com/discussion/886/need-assistance-automating-operation</link>
        <pubDate>Thu, 29 Mar 2018 16:45:04 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>JamesBond</dc:creator>
        <guid isPermaLink="false">886@/discussions</guid>
        <description><![CDATA[Hi all,<br /><br />I would like to create a macro to run an operation on all the images that are opened. The process that I am interested in running is:<br /><br />ret = IpOpShow(1)<br />ret = IpOpImageArithmetics (1, 0.0, OPA_AVG+IMC_C_DIRECT,0)<br /><br />But I would like to do this for every combination of image opened. Currently, the operation methods only allows this for 2 images at a time, not for multiple images. <br /><br />Any help will be greatly appreciated!<br /><br />Thanks<br /><br /><br />]]>
        </description>
    </item>
    <item>
        <title>VB and IpAcqSnap don&#39;t seem to trigger POST SNAP MACRO . . .</title>
        <link>https://forums.mediacy.com/discussion/812/vb-and-ipacqsnap-dont-seem-to-trigger-post-snap-macro</link>
        <pubDate>Thu, 08 Jun 2017 21:57:29 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>mbatchelor</dc:creator>
        <guid isPermaLink="false">812@/discussions</guid>
        <description><![CDATA[<p>2017-06-08-162300</p><p>All --</p><p>I am working to patch up a system which IMAGE-PRO PLUS and a VB PROGRAM I wrote many years ago that includes the SUPERSNAP ROUTINE shown below.</p><p>Due to changes in CAMERA and FRAME GRABBER equipment since the program was written, I would like to do some fairly simple operations to the image after it is captured.</p><p>I thought this could be accomplished with a POST SNAP MACRO.</p><p>After writing such a macro and testing it with the CAPTURE DIALOG BOX, I find that it seems that the POST SNAP MACRO is not triggered by the </p><p>    ret = IpAcqSnap(ACQ_NEWEX)</p><p>included in SUPERSNAP.</p><p>I can crack open the VB PROGRAM and include the operations within it but that will entail a level of surgery on the VB PROGRAM that I was hoping to avoid.</p><p>** QUESTIONS **</p><p>1) Is there an elegant way to configure IMAGE-PRO PLUS so that a ROUTINE within a MACRO will run when a SNAP is triggered from a routine like SUPERSNAP within a VB PROGRAM?</p><p>2) If #1 is not possible, it seems that a VB PROGRAM can command PLUS to run a ROUTINE within an IPM FILE via the IPMACRORUN COMMAND.  This is shown within the HELP FILE as follows:</p><p>    ret = IpMacroRun("PREP1","C:\IPWIN\UTILTIIES.SCR")</p><p>    This statement will execute the macro "PREP1" in the “UTILITIES.SCR” script file. </p><p>This seems to indicate that if I put an appropriate IPMACRORUN statement into my VB PROGRAM that I can trigger the POST SNAP MACRO stored in an IPM FILE.<br /><br />Can anyone say whether this will work?</p><p>** **</p><p>Thanks in advance. </p><p>-- Matt</p><p></p><p></p><p>*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-</p><p>Private Sub SuperSnap()</p><p>    'If the preview is on<br />    If (Check_Preview.Value = vbChecked) Then<br />    <br />            'Turn off the PREVIEW<br />            Check_Preview.Value = vbUnchecked<br />        <br />        End If<br />    <br />    'Close all of the images that are currently open<br />    ret = IpAppCloseAll()<br />    <br />    'Capture a new image from the camera<br />    ret = IpAcqSnap(ACQ_NEWEX)<br />    <br />End Sub</p>]]>
        </description>
    </item>
    <item>
        <title>Naming User Defined Positions in Stage-Pro</title>
        <link>https://forums.mediacy.com/discussion/764/naming-user-defined-positions-in-stage-pro</link>
        <pubDate>Mon, 13 Mar 2017 20:20:24 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>jmrb2356</dc:creator>
        <guid isPermaLink="false">764@/discussions</guid>
        <description><![CDATA[Hi all,<br /><br />I have an automated stage with a 4 slide holder and use Stage-Pro.  The software designates the User Defined Positions as 0-3 and then I have to save the run as "sample_" so the software saves the images as "sample_UDP0_XYF000 ZF00.tif".  The problem is I have 4 different samples being run at once so after I batch process-count/measure and save the data, I have to do a lot of transformations with the labeling to portray the correct sample number.  I was wondering if there was a macro or a way to label each User Defined Position when it is saving the images to save some time?  For example, can I ask it to save UDP0 as sample1, UDP1 as sample 2, UDP2 as sample 3, and UDP3 as sample 4?<br /><br />Thanks!<br />Jena<br />]]>
        </description>
    </item>
    <item>
        <title>Establishing directory for batch processing</title>
        <link>https://forums.mediacy.com/discussion/755/establishing-directory-for-batch-processing</link>
        <pubDate>Tue, 21 Feb 2017 21:59:27 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>jmrb2356</dc:creator>
        <guid isPermaLink="false">755@/discussions</guid>
        <description><![CDATA[<p>Hi all,</p><p>I have the code for batch processing from a directory from one of the demos.  However, when running the code it keeps coming up with an error when it begins the code: </p><p>If gDirStart = "" Then                        'Error is in this line<br />		gDirStart = "C:\"<br />	End If<br /></p><p>The error I am getting is <i>Expecting an existing scalar var</i>.</p><p>There is a comment before this line of code stating </p><p>' Make certain we have a reasonable starting point. This code is<br />	' only executed the first run after macro compilation. If you have<br />	' a desired standard starting point, initialize the directory<br />	' search here.</p><p>Am I supposed to be running something first to set the directory?  </p><p>Thanks,</p><p>Jena</p>]]>
        </description>
    </item>
    <item>
        <title>Numer of the color white for created objects.</title>
        <link>https://forums.mediacy.com/discussion/749/numer-of-the-color-white-for-created-objects</link>
        <pubDate>Wed, 15 Feb 2017 17:17:29 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>guizeemann</dc:creator>
        <guid isPermaLink="false">749@/discussions</guid>
        <description><![CDATA[Hello,<br /><br />My name is Guilherme and I am have created a macro that creates objects, like a line or a Name, with different collors, depending on the background. <br />See part of it below.<br /><br />    barra = 12632256<br />    ret = IpAnCreateObj(GO_OBJ_TEXT)<br />    ret = IpAnMove(0, MLx, MLy)<br />    ret = IpAnText("TECMETAL")<br />    ret = IpAnSet(GO_ATTR_FONTSIZE, 17)<br />    ret = IpAnSet(GO_ATTR_FONTBOLD, 1)<br />    ret = IpAnSet(GO_ATTR_TEXTCENTERED, 1)<br />    ret = IpAnSet(GO_ATTR_FONTUNDERLINE, 0)<br />    ret = IpAnSet(GO_ATTR_TEXTCOLOR , barra)<br /><br />What I need is to create a white object, but I didnt find the number that represents the white color. The number that I used (12632256) gives me a gray object.<br />Somebody knows which number gives me a white object?<br /><br />]]>
        </description>
    </item>
    <item>
        <title>Macro for creating irregular AOI in Image-Pro Plus</title>
        <link>https://forums.mediacy.com/discussion/741/macro-for-creating-irregular-aoi-in-image-pro-plus</link>
        <pubDate>Fri, 03 Feb 2017 14:26:26 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>jmrb2356</dc:creator>
        <guid isPermaLink="false">741@/discussions</guid>
        <description><![CDATA[<p>Hi,</p><p>I am trying to have a macro in IPP that identifies the outline of an irregular object across an image and make it an irregular AOI.  Then be able to count the objects inside of that AOI and classify them based on area.  When I recorded a macro and identified the irregular AOI it gave me the below code.  However, when it runs on its own it fails to identify the AOI and therefore the counts the wrong objects.  </p><p>'&lt;c&gt;H<br /> ret = IpWsLoad("F:file.tif","tif")<br /> ret = IpAoiMultShow(1)<br /> ret = IpAoiMultAppend(1)<br /> ret = IpBlbShow(1)<br /> ret = IpBlbCount()<br /> ret = IpBlbShowSingleClass(0, ipBins(0), 2, 1)<br /> ipBins(0) = .2866733<br /> ipBins(1) = 26.0<br /> ipBins(2) = 1070.983<br /> ret = IpBlbShowSingleClass(0, ipBins(0), 2, 1)<br /> ret = IpBlbCreateMask()<br />End Sub</p><p><br /></p><p>When I looked it up in the manual it states to use the below code but I don't quite understand what the points are that they mention?  Are they pixels or intensity values? </p><p> ret = IpListPts<br /> ret = IpAoiCreateIrregular (Pts (0), 7)</p><p><br /></p><p>Thanks,</p><p>Jena</p>]]>
        </description>
    </item>
    <item>
        <title>How to stop</title>
        <link>https://forums.mediacy.com/discussion/727/how-to-stop</link>
        <pubDate>Wed, 11 Jan 2017 07:33:34 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>TorbenMandrup</dc:creator>
        <guid isPermaLink="false">727@/discussions</guid>
        <description><![CDATA[<p>Have a very simple question about the batchprocessing. I use it for monitoring a folder, but how can I stop the batch (the monitoring)?</p><p> - Torben</p>]]>
        </description>
    </item>
    <item>
        <title>Add time delay to a macro</title>
        <link>https://forums.mediacy.com/discussion/726/add-time-delay-to-a-macro</link>
        <pubDate>Tue, 10 Jan 2017 20:33:30 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>kmerrillsmith</dc:creator>
        <guid isPermaLink="false">726@/discussions</guid>
        <description><![CDATA[I'm new to image pro plus. I have a user who wants to process a number of image files as a batch using a macro.  She wants to add a small time delay of a second or two in between each image because the data is being saved as a spreadsheet and takes time to be processed. Anyone know of a way to accomplish that?<br /><br />Thanks.]]>
        </description>
    </item>
    <item>
        <title>Processing on Datacollector</title>
        <link>https://forums.mediacy.com/discussion/725/processing-on-datacollector</link>
        <pubDate>Tue, 10 Jan 2017 13:27:30 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>TorbenMandrup</dc:creator>
        <guid isPermaLink="false">725@/discussions</guid>
        <description><![CDATA[Hi There<br />I have this macro (with A LOT of help from Yuri), that generates data in the datacollector, The processed images are not visible - the same goes for the datacollector. That saves my a lot of time when running as a batch. After batch processing are have a small script that empties the datacollector into Excel for further calculations. It would nice to make the Excel VBA coding directly in ImagePro, again to save time and trouble.<br />I have been experimenting a little and this line in my macro:<br /><br /><pre spellcheck="false" tabindex="0"><i>    Public Function FD_Measure(doc1 As Object) As SimpleScript&#13;
        FD_Measure = New SimpleScript&#13;
</i><i>         - bla bla bla&#13;
         - bla bla bla&#13;
         - bla bla bla&#13;
         </i></pre><pre spellcheck="false" tabindex="0"><i>         </i><b><i>Call DoSomething()</i></b><i>&#13;
&#13;
    End </i><span><i>Function&#13;
</i></span>&#13;
Then made this simple sub routine:&#13;
&#13;
&#13;
<i>    Private Sub DoSomething()&#13;
        Debug.Print Now()&#13;
    End </i><span><i>Sub</i>&#13;
</span>&#13;
It works!:-)))&#13;
&#13;
But here comes the question - In this DoSomething, how can I access the data in the datacollector. &#13;
Loop through them, put them in arrays etc etc. I have all that code from Excel VBA.&#13;
&#13;
I need something like (in mumbo-jumbo language):&#13;
&#13;
<i>For i 1 to Number_Of-lines_in-Datacolletor&#13;
      myParamx(i) = Parameter1_In_Collector(i)&#13;
      myParamy(i) = Parameter2_In_Collector(i) &#13;
Next</i><br />Does it make any sence!?&#13;
&#13;
 - Torben</pre>]]>
        </description>
    </item>
    <item>
        <title>Datacollector limitations</title>
        <link>https://forums.mediacy.com/discussion/723/datacollector-limitations</link>
        <pubDate>Fri, 06 Jan 2017 16:17:43 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>TorbenMandrup</dc:creator>
        <guid isPermaLink="false">723@/discussions</guid>
        <description><![CDATA[Hi There<br />I have this macro (with a lot of help from Yuri) that makes a few operations on hidden images. Making some counts and logical operations - not very complicated. All data from the counting is stored in the datacollector. My problem is, that I want to process many images (+500) and it seems like the datacollector chokes. When I cross about 5-10K of lines in the datacollector everything goes VERY slow. I have tried to make few lines of code that activates the datacollector, loades data into Excel and empties the datacollector for each image. This helps a litlle bit but after about 500 images the processing it sloooooooooooooow:-(<br />What can I do to keep my application "clean", because it seems like something is piling up or am I just reaching the limits her?<br /><br /> - Torben]]>
        </description>
    </item>
    <item>
        <title>Datacollector problems</title>
        <link>https://forums.mediacy.com/discussion/724/datacollector-problems</link>
        <pubDate>Sun, 08 Jan 2017 16:46:50 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>TorbenMandrup</dc:creator>
        <guid isPermaLink="false">724@/discussions</guid>
        <description><![CDATA[SUddenly I cannot 'find' my measurements tab in the datacollector datatable - I even get this error opening my stored collector.<br /><br /> - Torben<img src="https://us.v-cdn.net/5020878/uploads/editor/6d/x16wnltuur57.png" alt="" title="Image: https://us.v-cdn.net/5020878/uploads/editor/6d/x16wnltuur57.png" srcset="https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=300, width=300/5020878/uploads/editor/6d/x16wnltuur57.png 300w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=600, width=600/5020878/uploads/editor/6d/x16wnltuur57.png 600w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=800, width=800/5020878/uploads/editor/6d/x16wnltuur57.png 800w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=1200, width=1200/5020878/uploads/editor/6d/x16wnltuur57.png 1200w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=1600, width=1600/5020878/uploads/editor/6d/x16wnltuur57.png 1600w, https://us.v-cdn.net/cdn-cgi/image/quality=80, format=auto, fit=scale-down, height=2000, width=2000/5020878/uploads/editor/6d/x16wnltuur57.png 2000w, https://us.v-cdn.net/5020878/uploads/editor/6d/x16wnltuur57.png" sizes="100vw" />]]>
        </description>
    </item>
    <item>
        <title>User select rotation.</title>
        <link>https://forums.mediacy.com/discussion/720/user-select-rotation</link>
        <pubDate>Wed, 28 Dec 2016 19:15:50 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>matt321</dc:creator>
        <guid isPermaLink="false">720@/discussions</guid>
        <description><![CDATA[<p><span>&#13;
&#13;
</span></p><p>In my macro I would like the rotation tool to open so the user&#13;
can manually select the rotation then have the macro proceed.  How do I go&#13;
about doing this?</p><p><span>&#13;
&#13;
</span></p><p>Thanks</p><p><span>&#13;
&#13;
</span></p><p>Matt</p>]]>
        </description>
    </item>
    <item>
        <title>Working with variables</title>
        <link>https://forums.mediacy.com/discussion/712/working-with-variables</link>
        <pubDate>Wed, 23 Nov 2016 18:29:54 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>TorbenMandrup</dc:creator>
        <guid isPermaLink="false">712@/discussions</guid>
        <description><![CDATA[There's something about the macro language I don't understand. I want make a macro that saves the results in a txt file with the same name as the image. The start of my macro looks like this:<br /><br /><pre spellcheck="false" tabindex="0">    Public Function FD008() As SimpleScript&#13;
        FD008 = New SimpleScript&#13;
        Dim doc1, image1, doc2&#13;
        Dim docList1 = New List(1), doc3, image2&#13;
        Dim myFile As String&#13;
        Dim StubNo As Integer&#13;
        Dim ImageNo As Integer&#13;
&#13;
        With Application.RibbonCommands.SelectRibbonTab(FD008)&#13;
            .TabName = "Measure"&#13;
            .Run()&#13;
        End With&#13;
&#13;
        Measure.Data.CollectorCommands.Clear(FD008).Run()&#13;
&#13;
        With Application.RibbonCommands.SelectRibbonTab(FD008)&#13;
            .TabName = "CountSize"&#13;
            .Run()&#13;
        End With&#13;
&#13;
        With Application.DocumentCommands.Active(FD008)&#13;
            .Run(doc1)&#13;
        End With&#13;
&#13;
        With Measure.MeasurementsCommands.Options(FD008)&#13;
            .ActiveClass = 1&#13;
            .Run(doc1)&#13;
        End With&#13;
&#13;
<b><i>        myFile =  doc1.Name</i></b>&#13;
&#13;
&#13;
why doesn't that last bit work? I want to use the filename for savings later on:&#13;
&#13;
&#13;
        With Measure.Data.Collector.TableCommands.SaveAsText(FD008)&#13;
            .FileName = "C:\Users\torbe\Dropbox\Torben Dokumenter\Mandrup Software\Kunder\RW\Ny SEM\Pyhton Code\" &amp; Left(myFile,Len(myFile)-4) &amp; ".txt"&#13;
            .UseStatistics = False&#13;
            .Run()&#13;
        End <span>With&#13;
</span>&#13;
Please help me:-))&#13;
&#13;
 - Torben</pre>&#13;
&#13;
]]>
        </description>
    </item>
    <item>
        <title>Setting a range using LutBinarize instead of allowing BlbCount to automatically threshold</title>
        <link>https://forums.mediacy.com/discussion/645/setting-a-range-using-lutbinarize-instead-of-allowing-blbcount-to-automatically-threshold</link>
        <pubDate>Thu, 02 Jun 2016 14:09:48 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>jmrb2356</dc:creator>
        <guid isPermaLink="false">645@/discussions</guid>
        <description><![CDATA[Hi All,<br /><br />I used code previously where the IpBlbCount code automatically thresholds the image prior to counting objects.  I want to set the range for this and not have that be automatic.  Below is the code I have written, is this correct? Or will the IpBlbCount still be primary and automatically set the range after I have set the range to what I would like to threshold?<br /><br />ret=IpSCalSelect("Leica_20x")<br />ret=IpLutBinarize(0,80,1)<br />ret=IpBlbSetAttr(BLOB_CLEANBORDER,1)<br />ret=IpBlbCount()<br />ret=IpBlbUpdate(0)<br />ret=IpDcUpdate(DC_Fetch)<br />ret=IpBlbSaveOutline(name_Script)<br />ret=IpSnap()<br />ret=IpWsSaveAs(name_Image, "JPG")<br />ret=IpDocClose()<br /><br />Thanks,<br />Jen<br />]]>
        </description>
    </item>
    <item>
        <title>Dark Field counting</title>
        <link>https://forums.mediacy.com/discussion/618/dark-field-counting</link>
        <pubDate>Fri, 22 Apr 2016 16:05:52 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>bcharles</dc:creator>
        <guid isPermaLink="false">618@/discussions</guid>
        <description><![CDATA[We have an application where we are counting defects in a thin film coating. The setup is a dark field measurement with a 20x objective. We are looking for defects that are possibly down to 1um in diameter on a 100mm diameter sample. We have a macro that measures and NxN grid over the part. The trouble is in focusing. The program estimates focus at each location and adjusts the z-axis thru motor control. The trouble is focus may be slightly off and defects are missed or blurry resulting in errors in the data. Is there a method accurately controlling focus thru a script and motor control? We are using an version 7.0 of IPP on WIndows XP.<br /><br />Thanks!]]>
        </description>
    </item>
    <item>
        <title>IpAcqTimedEx</title>
        <link>https://forums.mediacy.com/discussion/442/ipacqtimedex</link>
        <pubDate>Mon, 04 May 2015 22:05:05 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>flying_worm</dc:creator>
        <guid isPermaLink="false">442@/discussions</guid>
        <description><![CDATA[I started to use image pro plus again. IpAcqTimedEx used to be working well in 6.8. Now it does not work in 7.0.1 and gives an error (Expecting an existing scalar var). I simply tested ret = IpAcqTimedEx(" ", " ", 1, 10, 200), and again gave same error. Do you have any idea?<br /><br /><br />]]>
        </description>
    </item>
    <item>
        <title>Automatically take image from scan</title>
        <link>https://forums.mediacy.com/discussion/527/automatically-take-image-from-scan</link>
        <pubDate>Thu, 12 Nov 2015 12:55:28 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>MattAB20</dc:creator>
        <guid isPermaLink="false">527@/discussions</guid>
        <description><![CDATA[Hi,<br /><br />I have created a macro that takes images using an Infinity camera that works well. However, we have another camera (Opticam, I think) that doesn't work with the normal image acquisition tool and only works through the scan function in (I'm using ImagePro 6.3). However, I cannot record a macro snapping an image from the scan tool. Is this possible?<br /><br />Thanks<br />Matt]]>
        </description>
    </item>
    <item>
        <title>(10092) ActiveX Automation: server cannot create object</title>
        <link>https://forums.mediacy.com/discussion/526/10092-activex-automation-server-cannot-create-object</link>
        <pubDate>Tue, 03 Nov 2015 14:43:06 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>ttli</dc:creator>
        <guid isPermaLink="false">526@/discussions</guid>
        <description><![CDATA[I want create an MScommLib.MSComm object to control stages and I can see it in the Object Browser. But while excuting the macro it always appears the error message "(10092) ActiveX Automation: server cannot create object." Does anyone have idea what's going wrong? My software version is 7.0.0.591 and OS is windows 7 32bit]]>
        </description>
    </item>
    <item>
        <title>Is there a maximum number of frames to open and merge?</title>
        <link>https://forums.mediacy.com/discussion/499/is-there-a-maximum-number-of-frames-to-open-and-merge</link>
        <pubDate>Wed, 02 Sep 2015 02:08:39 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>gfo</dc:creator>
        <guid isPermaLink="false">499@/discussions</guid>
        <description><![CDATA[<span>I need to open and merge more than 4000 frames to run a routine, but it not was possible. It only have took 206 frames in the max. The format of frames is bmp and the size of each frame is around 900KB. The version of my Image Pro plus is a little old (5.1.2.59). Some advice? Thank you.</span>]]>
        </description>
    </item>
    <item>
        <title>How to calculate time to execute macro image pro plus</title>
        <link>https://forums.mediacy.com/discussion/476/how-to-calculate-time-to-execute-macro-image-pro-plus</link>
        <pubDate>Wed, 29 Jul 2015 22:00:43 +0000</pubDate>
        <category>Image-Pro Plus Automation with Macros</category>
        <dc:creator>Carlos</dc:creator>
        <guid isPermaLink="false">476@/discussions</guid>
        <description><![CDATA[Hi YuriG<br /><br />How to calculate time to execute macro image pro plus  <br /><br />Thank You  <br /><br />]]>
        </description>
    </item>
   </channel>
</rss>
