IMAQ Quantify rseults with use of image mask are not of the right regeons

I'm using the IMAQ quantify VI from labview to analize a binairy image. This binairy image is an 8bit image that consists only of pixels with the value 0 or 1. The places of the binairy  image where the pixels have the value 0, mean that a corresponding image has not data in that place. A pixel value of 1 means that there is data that should be processed later in the program in the corresponding image.
The quantify function is also used to devide the image in 666 regeons with the use of the image mask input. These regeons are squares of 22x22 pixels. The image mask consists of 666 regeons (horizontally 74 sqaures, vertically 9 sqaures) and each of the regeons has his own regeonal number. The resulting regeonal report is used to decide whether each regeon has data in it or not, with the use of the mean value in the report. When the mean value is equal to 0 than it is sure that there is no data in that regeon since all the pixels in the regeon have to have the value of 0. If the mean is not 0 at least one of the pixels in that regeon has the value of 1, wich means that there is data in the regeon. The image mask is created from an 2D array wich is converted to an 16 bit image with the use of IMAQ ArrayToImage.
I've checked that the input data is correct: the binairy image consist of only 1 and 0 values, the image mask is consist of 666 sqaures of 22x22 pixels and each sqaure has pixels in it with the value corresponding to the regeonal number of the sqaure, the binairy image and the image mask have the same size, the image mask is an 16 bit image and both images have the same border size (3).
Two problems occur:
1) The regeonal report doesn't consist of 666 elements, but of 665 elements (element 0 to 664)
2) The data in the regeonal report is not of the right area's. It looks like the data is shifted one to the right in the regeonal report array, the data in element 0 isn't from regeon 0 but from regeon 1, element 1 corresponds to regeon 2, and so on. I'm haven't checked if the data is exactly of the next regeon, but I suspect it because of the regeonal report array being one short. But it is also possible that the regeons aren't placed on the right place in the binary image.
If someone else occured this problem with the IMAQ Quantify function or has a solution to it, I would really apreaciate a reply.

Isn't there anybody who encountered the same problem or with an solution?

Similar Messages

  • I try to insert some images on a website but the images are not in the right color mode. I do not know what to do? and also I have 1200 images to insert so I can not change one after one. So I need to set up an action, but I donot know how to do it... Tha

    I try to insert some images on a website but the images are not in the right color mode. I do not know what to do? and also I have 1200 images to insert so I can not change one after one. So I need to set up an action, but I donot know how to do it... Thanks

    What is the problem specifiaclly?
    If the images are intended for web use I would recommend converting them to sRGB which could be done with Edit > Convert to Profile or with File > Save for Web, but as including a Save step in Actions and applying them as Batch can sometimes cause problems I would go with regular converting.
    You could also try Image Processor Pro.
    Scripts Page

  • Using Pages - Images disappear when not on the 'paper' part of display

    using pages for a poster design - need to 'park' some images not on the page itself but to the side - when moved off the 'paper' disappear - just left with the 'outline indicators' - how can I keep the image visible whilst not on the 'page' I'm setting out?

    Rod,
    To simulate that behavior in Pages, open a blank Page Layout document and arrange the new document window to the side of your working document. To "park" a graphic, select and Command-X in the working document and Command-V in the "parking lot" documemt.
    Jerry

  • Why is it when I save an email with attachments, the attachments are not in the saved email?

    Does anyone know why it is when you save an email that has images (attachments) when you go to access the file again with the images, they are not in the document?
    The box marked "save attachments" is ticked?
    I dont understand
    Can anyone help?
    Thanks

    Is this your Apple account or some other mail?
    And are they all in the Inbox of your Mail? If so, rebuild the mailbox. If this is huge, it'll take some time.
    IF the images are HUGE, it'll take time to download them from the server to your computer. But once done they should remain there without the need to do anything at all (by default they are already saved).
    To click the Save button is to save them somewhere on your hard drive ... maybe to offload elsewhere later.
    Actually, you could just as easily save them to iPhoto instead of using Mail to look for and view them. Its a much faster viewing process, and you could set them up by dealers, artists, etc. ... or so I think.

  • How to delete images from folder which are not in the database

    I am created windows form
    i wont to delete images from the folder where i have stored images but i only want to delete those images which are not in the data base.
    i don't know how it is possible . i have written some code
    private void button1_Click(object sender, EventArgs e)
    string connectionString = "Data Source";
    conn = new SqlConnection(connectionString);
    DataTable dt = new DataTable();
    cmd.Connection = conn;
    cmd.CommandText = "select * from tbl_pro";
    conn.Open();
    SqlDataAdapter da = new SqlDataAdapter(cmd);
    da.Fill(dt);
    int count = Convert.ToInt32( dt.Rows.Count);
    string[] image1 = new string[count];
    for (int i = 0; i < count; i++)
    image1[i] = dt.Rows[i]["Image1"].ToString();
    string[] image2 = new string[count];
    for (int i = 0; i < count; i++)
    image2[i] = dt.Rows[i]["Image2"].ToString();
    var arr = image1.Union(image2).ToArray();
    string[] arrays;
    String dirPath = "G:\\Proj\\";
    arrays = Directory.GetFiles(dirPath, "*", SearchOption.AllDirectories).Select(x => Path.GetFileName(x)).ToArray();
    int b= arrays.Count();
    for (int j = 1; j <= b; j++)
    if (arrays[j].ToString() != arr[j].ToString())
    var del = arrays[j].ToString();
    else
    foreach (var value in del) // ERROR DEL IS NOT IN THE CURRENT CONTEXT
    string filePath = "G:\\Projects\\Images\\"+value;
    File.Delete(filePath);
    here error coming "DEL IS NOT IN THE CURRENT CONTEXT"
    I have to change anything .Will It work alright?
    pls help me
    Sms

    Hi Fresherss,
    Your del is Local Variable, it can't be accessed out of the if statement. you need to declare it as global variable like below. And if you want to collect the string, you could use the List to collect, not a string.  the string will be split to chars
    one by one.
    List<string> del=new List<string>();
    for (int j = 1; j <= b; j++)
    if (arrays[j].ToString() != arr[j].ToString())
    del.Add(arrays[j].ToString());
    else
    foreach (var value in del)
    string filePath = "G:\\Projects\\Images\\" + value;
    File.Delete(filePath);
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I am using an Macbook pro in conjunction with a Time Capsule. I back up all my aperture librarys on it, but how can i view these images that are stored on the capsule please ??

    I am using an Macbook pro in conjunction with a Time Capsule. I back up all my aperture librarys on it, but how can i view these images that are stored on the capsule please ??

    If you want to see what is in a file that is backed up by time machine then you have to restore the entire file. Having said that I have had good experience with Time Machine and individual files... if the file is there then all of it's components are almost for sure there. A way to get around this in Aperture would be to use referenced images. The images then still exist as individual files and can be backed up and restored individually. You would have to do so on a file by file basis though and your album information would still only be saved within the Aperture library.

  • Problem with menus on the right and image is too far to the right.

    Notice the difference in sizes of the menus, (Unfamiliar with the correct terminology). I cannot get the Adjustments, Layers, Properties, etc. to all be the same size, increase their width. Notice the loaded image is too far to the right underneath the menus. I have to go to Window/Arrange/Float in window to move the image to the left. Also I cannot get the Maximize/Minimize button to work. How can I fix these problems.

    I did that already with the same results. Trying to widen the Adjustment
    menu does not work. I am satisfied with
    the way the other menus appear. The only other problem that bothers me
    is that the loaded image is to far to the
    right, and is underneath the menus. The only way I can move the image to
    the left is to use the Float in window
    command, but it is not permanent. It goes back to the default position
    when another image is opened.
    Thanks for the Alt shortcuts and the button is visible.
    Gary

  • Are there any know issues with using multiple (2) apple tv's in the same household??

    I'm thinking of getting a second Apple TV. Are there any known issues with using multiple (2) apple tv's in the same household? Thank you in advance.

    No, shouldn't have any problems

  • Some CD's with music burned to it, are not being recognized as having music files on them.

    Some CD's with music burned to it, are not being recognized as having music files on them.

    The format says Mac OS Extended.  All of the settings were set during the disk image restore process.  Even if I format the flash drive as extended journaled or some other format, all of these settings are reverted when I do the restore from the disk image.  I will just copy all of the information that disk utility has so that you can see it.
    Mount Point :     /Volumes/Mac OS X Install ESD     Capacity :     16.11 GB (16,106,110,976 Bytes)       Format :     Mac OS Extended     Available :     12.3 GB (12,303,499,264 Bytes)       Owners Enabled :     Yes     Used :     3.8 GB (3,802,611,712 Bytes)       Number of Folders :     128     Number of Files :     876

  • Help!!! the app Iphoto is closed marking a erros. I go back and open the application and are not photos. How can I recover them? Are not in the image folder.

    I was editing my photos and adding them to a album and suddenly the app is closed marking a erros. I go back and open the application and are not photos. How can I recover them? Are not in the image folder.

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • When I updated by iphone with IOS7, my calendar entries did not follow the icloud.  I am only showing pre set calendar entries for the year?

    When I updated by iphone with IOS7, my calendar entries did not follow the icloud.  I am only showing pre set calendar entries for the year and lost all other calendar entrie and it will not take any new entries.  They show up in my outlook, but not on my iphone, which they did before I updated my software to the new i0s7

    Before syncing, select each calendar on your Mac and back it up by going to File>Export>Export.  If anything goes missing, you can use these to restore your calendars.
    Have you tried simply force closing the calendar app on your iPhone?  To do this, double-tap the home button, locate the calendar app, then swipe up on the image above the app icloud to close it and tap the home bottom.  Then test your calendar again.

  • CS6 (Windows) My Images are not filling the entire program window

    My sequence is set to 1920x1080 and I have imported some images (Tiff's) into it that are of the resolution. Yet, when I go to those images in the timeline, they are not filling the entire available space. The entire image is being displayed, but it is supposed to fill the entire screen. You can see for yourself with this image attachments.
    Ideas?

    OK, the Default Scale to Frame Size box was unchecked, I checked it.
    The aspect ratios match.
    I understand what you are saying about pixel depth, but 1920 x 1080 is still the width and height of the image and the image and sequence both show the same width and height, think that I should not get what I am getting here.
    I checked the "Modify|Interpret Footage" option and the radio button is set to "Use Pixel Ratio From File: Square Pixels (1.0)" and changed it to Conform to Square Pixels (1.0) and still have the same results.
    This is not happening with just one image, it is happening with all of them. If I bring in an image that is 3840x2160 (200%) and then set the scale to 50%, I still get the same black space. So, it is either fill the screen and cut off some of the displayed image or live with black space. There is just something wrong here I am not seeing.

  • How can I display images that are not included in any collection?

    How can I display images that are not included in any collection (some filter or smart collection)? A smart collection with parameters "Collection - contains - empty field" does not work. Lightroom 5.

    Thank you! Good idea! I ordered letters of the alphabet (space separated), and it works.

  • I can not perform software updates or download any programs. They appear in the download box as images that are not recognized. How can I fix this?

    I can not perform software updates or download any programs. They appear in the download box as images that are "not recognized". I thought maybe my antivirus software was setting up a firewall, but I have disabled it, so that's not the case. Any suggestions as to  how I can fix this?

    If the downloads are gone, it's possible that Windows is removing the downloads based on security policies set in IE. I realize that sounds strange, but it's related to Firefox's feature of submitting downloads to your virus scanner and marking them as having come from the internet.
    To test this theory, you could try disabling the scan feature. I assume you have good "real time" antivirus protection which checks every file saved to your hard drive. (If not, you really should get that, and you can use Microsoft's free [http://windows.microsoft.com/en-US/windows/products/security-essentials Microsoft Security Essentials] for now until you have time to review all the available choices.)
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''scan''' and pause while the list is filtered
    (3) Double-click '''browser.download.manager.scanWhenDone''' to toggle its value.
    Firefox now should ignore Windows' download security. Does it change how Windows handles the file?

  • Using custom classes that are not beans

    Hi folks,
    Is it possible to use java classes that are not beans. I mean, on a page, could you say Customer cust = new Customer("Jones", 25);
    if you had a Customer class with a constructor that took a name and age (String and int).
    If so, how do you go about this- do you need to import the class, or put it in a standard location? I'm using Tomcat, and would guess that this would go in WEB-INF/classes?
    I hope it's not a stupid question, all the literature seems to be focused on JavaBeans
    Any advice on this would be great!

    Beans are used as putting Java code into a JSP is generally considered bad practice. The advantage of the bean pattern is that you use things like:
    <jsp:setProperty name="laBean" property="someSetter" value="someValue" />so that you aren't embedding Java directly into the JSP. I'm not very religious about this particular topic personally and will throw a line or two in here and there.
    Having said that though, you can easily use any Java class in a JSP. You'll have to import it first:
    <%@ page import="java.util.*" %>And then you can easily use it like in a real Java program.

Maybe you are looking for

  • File to IDOC scenario error...

    Hi all, we hhave created an File to Idoc scenario . we are getting the following error in SXMB_MONI t-code. <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.x

  • Converting m2ts videos for iPhoto slide show.

    My brother used a new camera during a recent trip we took together. He has some great videos, but they are m2ts format and I use iPhoto to produce my slide shows. (I burn the slide show using iDVD). How do I convert his videos so that I can use them?

  • Need a help in pl/sql cursors

    Hi, wrong posted...if i have any clarifications i can mail to all. thanks...

  • Partitions I don't use being automounted - Udisks ?

    Several partitions on my disks are formatted but are (were) not in /etc/fstab since for the moment I an not using them (they used to have a 32 bit ARCH version, I am using 64 bit now). But I started noticing that some programs started showing them (t

  • Right aligned buttons in panelFormLayout footer

    ADF 11g Hello I do you get right aligned buttons in the footer of a panelFormLayout ? Regards Paul