Particle detection with grid background

I am attempting to detect cells in an image from a microscope, but the problem is that a grid background exists which prevents the typical thresholding method to work. I have tried using a low pass filter to remove the grid pattern, but in order to filter out the grid completely, the cells become too blurred. An example image is attached. Is there any function to filter away the grid while keeping the cells in focus?
There are also light patterns on the image, but a color plane extraction already removes their intrusion on thresholding.
The ideas mentioned in the thread below may help to detect the cells after the grid has been removed.
http://forums.ni.com/t5/LabVIEW/particle-detection​-with-poor-background/td-p/679618
Thanks a lot!
Attachments:
untitled 2.png ‏1455 KB

Hello Tiraken,
One potential solution is to take an image of the grid without any cell then subtract all images with the template.
Andy Chang
National Instruments
LabVIEW Control Design and Simulation

Similar Messages

  • Problem with changing background colors in JPanels

    Hi,
    I have made an applet with Grid Layout and I have added JPanels in each grid. I have assigned a background color to all panels.
    Now what i am trying to do is, change the clicked JPanel's background color to "blue" on a mouse click and convert the previous changed JPanel's background to originally assigned color.
    This is the code that I have used:
    JPanel temp=null, m;
    String tempc, m_color;
    public void mouseClicked(MouseEvent me)
              m=(JPanel)me.getComponent();
              if(m!=temp)
              m_color=m.getBackground().toString();   // retaining current background color so as to change later
              m.setBackground(Color.blue);
                   if(temp!=null) 
                        temp.setBackground(Color.getColor(tempc));  // change back to original color
              tempc=m_color;       //tempc and m_color are Strings
              temp=m;               //temp and m are JPanels
         }When I am executing the above logic, background color changes to blue on a mouse click but the previously changed JPanel is not changing back to original color.
    Can anyone please tell where is the above logic going wrong??
    Thanks
    Rohan

    Hi Camickr,
    I tried to do it without changing Color to Strings but i was getting an error in the line temp.setBackground(Color.tempc);, so i decided to change it to String and retrieve it's value in the method.
    SSCCE for my code is:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import java.lang.reflect.InvocationTargetException;
    <applet code="test" width=400 height=400>
    </applet>
    public class test extends JApplet
         JPanel t[][]=new JPanel[8][8];
         JPanel p[][];
         public void init()
         try{
         SwingUtilities.invokeAndWait(new Runnable()
              public void run()
                   t=makeGUI(8,8);
                   logic(t,8,8);
         }catch(InterruptedException e){e.printStackTrace();}
         catch(InvocationTargetException e){e.printStackTrace();}
    /* Board*/
    private JPanel[][] makeGUI(int rows, int cols)
        p = new JPanel[rows][cols];
        Container contentPane = getContentPane();
        contentPane.setLayout(new GridLayout(rows, cols));
        for (int i = 0; i < rows; i++)
          for (int j = 0; j < cols; j++)
            p[i][j] = new JPanel();
            contentPane.add(p[i][j]);
            if (i % 2 == j % 2)
              p[i][j].setBackground(Color.white);
              else
              p[i][j].setBackground(Color.darkGray);
         return p;
    private void logic(JPanel p[][], int rows, int cols)     
              for (int i = 0; i < rows; i++)
              for (int j = 0; j < cols; j++)
              final int k=i, l=j;
              p[i][j].addMouseListener(new MouseListener()
                   JPanel temp=null,m;
                   String tempc, m_color;
                   public void mouseClicked(MouseEvent me)
                        m=(JPanel)me.getComponent();
                        if(m!=temp)
                        m_color=m.getBackground().toString();     //retaining current background color
                        m.setBackground(Color.blue);
                        if(temp!=null)     // this method sets the panel
                             {               //     to its original color
                             temp.setBackground(Color.getColor(tempc));
                        tempc=m_color;     //color Strings
                        temp=m;          //JPanels
                   public void mouseEntered(MouseEvent me){}
                   public void mouseExited(MouseEvent me){}
                   public void mousePressed(MouseEvent me){}
                   public void mouseReleased(MouseEvent me){}
    }

  • Save a video with trasparent background

    is there a way in after effects to save a video with trasparent background? i know that only mov and avi supports it...
    but how can i do this in AE?

    im following some video on YT but everyone say
    create new composition
    write something on the screen
    render the video using alpha + rgb but they don't show results...
    if i remove the background deactivating the transparent grid, when i render the video if i open it i will have always my background... even if i choose another BG colour if i render following these tutorials i will see always my background...
    can someone post here a guide or write a little guide on how to write something on a trasparent layer that will be saved on a trasparent layer?

  • How do I export an animation from Photoshop with no background, to use in after effects?

    Its been a few years since I've used photoshop and after effects together so hoping you can remind me how to do this.
    I'm trying to export an animation created in photohop, its frame by frame, no background. I've been exporting it as an image sequence, now I"ve coloured it I need to solve this transparency issue.
    Is there a way to export it to use in after effects on top of a background layer.
    So I just want to see the character, no background, animation on top of my background layer in after effects, does that make sense??
    Please don't say I need to have an alpha channel on each frame, that will take ages, there must be another way.
    Please help I need to sort this ASAP
    Thanks in advance!
    x

    Thanks!
    So this makes sense, I tried it, when I import into after effects (here is the psd.)
    I get this window not sure what to be selecting, but I tried different things and it still isn't importanting as literally the animation with no background, have I missed something? whats strange is that when I import the psd, what does import is a strange monatage of snippets of the video I'm making in afterfx, not the completely separate animation i made in photoshop which I'm trying to work into the video.
    very perplexing! any more help is much appreciated.
    Thanks

  • Windows Update Client failed to detect with error 0xc8000247 after using Lenovo System Update 5

    My Windows 7, SP1 was running fine, until I installed few updates on 10/15 using Lenovo System Update 5 then Windows Update stopped working, shows as RED:
    {CE3119AD-35EF-41CF-9C21-C7698FEB8393}    2013-10-14 21:53:00:256-0700    1    147    101    {00000000-0000-0000-0000-000000000000}    0    0    AutomaticUpdates    Success    Software Synchronization    Windows Update Client successfully detected 4 updates.
    {EB17A01A-EB6E-49FF-9EA2-AA0DD063B4B1}    2013-10-15 04:15:54:069-0700    1    162    101    {C61A0D00-3E51-48AC-B0AF-1D3E02B9E5D3}    201    0    AutomaticUpdates    Success    Content Download    Download succeeded.
    {77DAE88F-2795-4258-8BBF-8D27E53662CF}    2013-10-15 12:10:38:196-0700    1    193    102    {00000000-0000-0000-0000-000000000000}    0    0    AutomaticUpdates    Success    Content Install    Restart Required: To complete the installation of the following updates, the computer must be restarted. Until this computer has been restarted, Windows cannot search for or download new updates:  - Security Update for Windows 7 for x64-based Systems (KB2862330)
    {1398F777-3AEF-4D1D-BE4C-407EC4AEAD4C}    2013-10-15 12:15:25:676-0700    1    183    101    {C61A0D00-3E51-48AC-B0AF-1D3E02B9E5D3}    201    0    AutomaticUpdates    Success    Content Install    Installation Successful: Windows successfully installed the following update: Security Update for Windows 7 for x64-based Systems (KB2862330)
    {A220898A-E5FE-4FE7-8413-2B0C7B4013D0}    2013-10-15 12:15:25:766-0700    1    202    102    {00000000-0000-0000-0000-000000000000}    0    0    AutomaticUpdates    Success    Content Install    Reboot completed.
    {A5400FF2-33ED-4A47-8409-13E5DFE16A6D}    2013-10-15 19:29:31:486-0700    1    147    101    {00000000-0000-0000-0000-000000000000}    0    0    ChkWuDrv    Success    Software Synchronization    Windows Update Client successfully detected 0 updates.
    {43C533EE-775D-445E-A652-06648B72DE65}    2013-10-15 19:29:49:702-0700    1    147    101    {00000000-0000-0000-0000-000000000000}    0    0    ChkWuDrv    Success    Software Synchronization    Windows Update Client successfully detected 0 updates.
    {D6AAAFFB-7F18-4A7E-B39D-1BA09CDC5E6D}    2013-10-15 19:30:05:744-0700    1    147    101    {00000000-0000-0000-0000-000000000000}    0    0    AutomaticUpdates    Success    Software Synchronization    Windows Update Client successfully detected 3 updates.
    {4E73B1C1-5BA2-415D-AB34-92F7AB3DB418}    2013-10-15 19:30:08:753-0700    1    147    101    {00000000-0000-0000-0000-000000000000}    0    0    ChkWuDrv    Success    Software Synchronization    Windows Update Client successfully detected 0 updates.
    {51248882-41AC-4E59-B813-87AD326310AD}    2013-10-15 20:00:05:044-0700    1    183    101    {DBD3B4E9-0357-47DA-8317-D0CF2163BFE6}    501    0    wusa    Success    Content Install    Installation Successful: Windows successfully installed the following update: Hotfix for Windows (KB2661796)
    {FB2B8E5E-442C-4E76-B23D-6A41B4324C9D}    2013-10-16 00:11:39:832-0700    1    148    101    {00000000-0000-0000-0000-000000000000}    0    c8000247    AutomaticUpdates    Failure    Software Synchronization    Windows Update Client failed to detect with error 0xc8000247.
    Lenovo Thinkpad W500, Intel (R), Windows 7, SP1, latest updates as of Oct 15
    (1) Checked Setting,  set to automatic update whenever, even changed to never update, rebooted the OS and changed back to automatic update and rebooted the OS.
    (2) Stopped Windows Update Services, renamed SoftwareDistribution folder and started the window update services and rebooted.
    (3) Ran MS FIXIT
    (4) Ran System File checker Scan (sfc /scannow)
    (5) Ran CHKDSK /F
    (6) Installed "Intel Rapid Storage Technology" drivers from Lenovo site
    (7) Ran Update for Windows 7 for x64-based Systems (KB971033)
    None of the above possible recommended solutions were able to fix the issue yet and now I am getting a message your Window is Not Genuine!
    Any help or guidance is appreciated.
    Solved!
    Go to Solution.

    The Lenovo System Update installed the "Intel Matrix Storage Manager driver 8.9.2.1002" right before the Windows Upgrade got broken. So in the Device Manager under IDE ATA/ATAPI Controllers, I choose Intel ICH9M-E/M SATA AHCI Controller, on the Driver Tab, I choose the option "Roll Back Driver" and after rolling back the driver and restarting the OS, now Windows Update is working like a Champ!
    The End!

  • Animated gif with transparent background

    When I import in Keynote an animated gif with transparent background. The background becomes white. I did the following tests:
    If I extract a single image from the animated gif and import it in keynote the background is actually transparent but it becomes white when I import the whole gif.
    I also checked with other applications (NeoOffice) and the animated gif does come out with a transparent background.
    Do I do something wrong in Keynote ?

    This has been an ongoing issue for me since I switched from Powerpoint to Keynote. Most of the animated gifs with transparent backgrounds that I used with Powerpoint are no longer transparent in Keynote. You may want to search for those earlier threads on this topic...
    To summarize: I've had to open up my animated gifs in After Effects and use the Color Key effect to restore transparency, with mixed success.
    Good luck!

  • Creating animations with transparent backgrounds?

    I'm running into some problems when using After Effects to create animations with transparent backgrounds for Keynote...
    I use animated gifs and short quicktime movies with uniform backgrounds as source files, use color keying to take out the backgrounds, preview them to see if they look OK, render the results as RGB+alpha, and... they don't show up as transparent in Keynote. They work in Powerpoint, however. I've tried outputting as .mov, as .gif, as premultiplied vs straight alpha... no joy. Can someone explain (or point me to an explanation) of how Keynote differs from other programs in its handling of transparency? What am I missing?

    Using a TYPE_INT_ARGB BufferedImage worked beautifully. I had played around with Image for hours, but it never occurred to me that BufferedImage would be needed. :)
    many, many thanks,
    Steven

  • How do I transfer a .psd file to illustrator that can then be placed in Muse as a .svg with transparent background?

    I just wrote all this up in another thread.  I did not realize at the time that the last post was in 2014, so I'm giving it a go here.
    I am currently trying to create an .svg using Photoshop .psd file (with layers in tact).  I'm new to these products so it may be obvious to others that the above intention was to eventually place the .svg in some sort of website creation software such as Muse.  Which is precisely what I am attempting. However, I am getting a white background once I place or copy and paste into Muse.  My starting .psd has a transparent background without any hidden layers causing this problem.  To test this I placed the .psd file into Muse and it still has a transparent background.  However when opening or placing this file into illustrator, it picks up a white background. If I do exactly as described above, I still get the same result.  So far I have tried:
    1) Simple copy and paste from Photoshop .svg to illustrator to Muse.  Result - white background.
    2) Placing the .psd in illustrator, then placing the .svg file in muse.  Result - white background.
    4) I have also tried the every combination of 1 and 2. - Result - white background.
    3) I have now created a path in Photoshop from the text layer to yet again attempt the above methods.  Result - white background.
    I'm including an image of the object I am trying to place with transparent background, but I have both a flattened rasterized version, a version complete with layers and a third (.svg) with the corresponding objects.  I am completely new to Illustrator as of today so any help would be greatly appreciated.  Thanks.
    Link to .psd file "Welcome text"

    I was having some difficulties getting the correct dimensions of one of my objects, I eventually solved this problem without using svg.  It was pretty simple when I stopped trying to over complicate things.  I just linked the object to a near by object in photoshop, merged and placed it all as one.  It looks great now.  Thanks for your reply.  You are correct, SVG was not the answer.

  • Need to know how to find out the Variant associated with a background job

    Hello,
    Plz help me in finding out how to find the variant associated with a background job. I need to know which variant does the program picks up when it runs the scheduled background job. There are so many variants that exist. How do I figure out which one is being picked up by the program. When I go and see into the job that are already finished it shows the parameter as "&00000000645354" which I do not understand what it corresponds to. I was expecting a variant name instead of this number in the parameter field. Is there a way I can find out the name of teh variant the program is using automatically in the background job ??
    Thanks in anticipation

    Yes it is possible which is variant, input fields are choosen
    - go to SM37 and locate the background job which was processed using proper selection criteria
    - select the Job and click on 'Step' button availabe in the screen
    - the new screen is 'step list overview'. now, place the cursor on selected variant avaialble on the screen, then from Menu >> Goto>> variant
    which gives the list of input values.
    hope this helps
    Thanks
    JK

  • How do I mark the entire contents of a RichTextBox (gRTbxInfo) with a background color of white?

    How do I mark the entire contents of a RichTextBox (gRTbxInfo) with a background color of white?
    I have code that finds / marks words with a different color.  Now I want to remove that color.  I've started with the following, but cannot complete it.
        //int iLength = gRTbxInfo.Length
        int iLength = 10;
        TextRange trText = new TextRange(gRTbxInfo.Document.ContentStart, gRTbxInfo.Document.ContentEnd);
        TextPointer tpStart = trText.Start.GetInsertionPosition(LogicalDirection.Forward);
        TextPointer tpSelectionStart = tpStart.GetPositionAtOffset(0, LogicalDirection.Forward);
        TextPointer tpSelectionEnd = tpSelectionStart.GetPositionAtOffset(iLength, LogicalDirection.Forward);
        TextRange tpSelection = new TextRange(tpSelectionStart, tpSelectionEnd);
        tpSelection.ApplyPropertyValue(TextElement.BackgroundProperty, new SolidColorBrush(Colors.White));
    bhs67

    Isn't that just
    TextRange tr = new TextRange(rtb.Document.ContentStart, rtb.Document.ContentEnd);
    tr.ApplyPropertyValue(TextElement.BackgroundProperty, Brushes.White);
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Want to create an oval vignette in photoshop elements 10 with transparent background for printing w

    I am fairly new to PSE and I want to create an oval vignette in Photoshop Elements 10 with transparent background for printing on white paper using MS Publisher. Using the white background on inverse selection makes a slight line impression and either it should have a defined "frame" or nothing.
    Appreciate any guidance.

    Try with the Elliptical marquee tool:
    On the tool's option bar set feather 25-40 px (experiment)
    Drag out the Ellipse to embrace the object
    Go to Layer>new>layer via copy, or CTRL+J
    Your selection should fade out as a vignette and be surrounded by transparency
    Save this layer via File>save for web, select PNG-24, and tick "Transparency"

  • I place a psd file with transparent background on another layer in my InDesign document. The layer b

    I placed a psd file with transparent background on another layer in my InDesign document. The layer below has a color (RGB). When the psd file is placed it changes the color on the layer below. I've tried other psd files thinking something is wrong with my file, but get the same result. I have tried for days to figure this out. Can anyone help me?

    Wow, thank you! That was fast. I googled that question to death and even bought (another) book on CS5 and never saw that answer. Thank you so much. You made a very good ending to my day! I'd buy you a beer if I could!!

  • How to export PDF in Adobe Reader with changed background

    Hey Folks,
    I change background and text color by going to Preferences -> Accesebility and when I save the file with changed background it is still the old background. How to I save/export this PDF to have changed background?
    Thanks a lot!
    Krioni

    Adobe Acrobat.  A bit expensive just to change the document background...

  • Images with transparent backgrounds in MDM

    I've got several images in MDM with transparent backgrounds, yet when i look at these in image manager (or thumbnails in data manager) they look terrible. The transparency is black for example, among other issues. These images are all okay in photoshop, they have been saved as .png and imported through the data manager.
    Has this import ruined these image files on the way in? When my search engines etc extract the images, what of the transparencies?

    Hi Adam,
    MDM makes use of Internet Explorer quite frequently. I can imagine that this engine is also used to display images in MDM. However, Internet Explorer in version 6 does not support transparency in PNG images. That is why the black background occurs.
    Since your images after upload are only saved in a binary object in the database, you should not encounter any data loss when using the same images. If you need to create variants, I would consider using Photoshop for the creation of those.
    I hope that helps you further.
    Best regards
    Christian

  • Image with transparent background shows up with a white background in ID

    Amateur needs help.
    I have a copy of a logo with a transparent background.  I made the (white) background transparent in PS by creating a layer from background and then selecting the white color in the background and deleting it.  This has always worked in the past.  But when I place this image into ID, it shows up with a white background.  I have tried saving as a PSD, TIF, JPG, etc.  I cannot get it to work. 
    I normally research these things until I find an answer, but I am on a tight deadline.  Thanks!

    I totally forgot to put that in my post.  Yes, I am putting logos with transparent backgrounds in front of colored rectangles.  That's how I noticed that this one logo is showing up with a white background.  The weird thing is that the other two logos are fine.  I did find a different version of this logo and this one works fine.  The one that works fine is a JPG and the one that shows up with a white background is a JPG.

Maybe you are looking for

  • Open directory Server admin APP, crashes

    HI all. ON my 10.7.2 lion server for some reason my server admin app keeps crashing under the Open directory Section... Here are the screen shots..

  • Problem with NVidia Quadro FX 4000 on MSI K8T Master2-Far

    Hello everyone, I am new to the forums here.  I cannot figure out what is causing my problem. I have been having performance issues with my new Quadro FX 4000 on my system.  I have been in communication with Nvidia tech support for a while now.  Here

  • Controlling Namespace Prefix in OSB10gR3

    Hi, I am doing a xquery transformation in my application, where I have defined a few namespaces with prefixes, but the prefixes get changed in my output. Is there anyway I can control the namespace prefixes. Thanks, Balaji.

  • Slideshow display order using Tiger Finder - Control-contextual menu?

    The Tiger Finder Slideshow function (select image files, press Control, Choose Slideshow from the drop-down menu) behaves oddly. 1. The slide display order is reproducible, but is not controlled by the View display order. It is NOT Name, Date modifie

  • Unwanted automatic cropping when viewing in Photos

    In IOS 7, the Photos app crops my images when viewed on my Ipad 2. It takes a sliver off the top and bottom. When displayed on AppleTV exclusively, I see the whole image. In IOS 6, too, I see the whole image, on either screen. How can I get IOS 7 to