Using non-square template images

Is there any possibility of using non-square templates in IMAQ Match Color Pattern? For example, I need to find predefined circle in the image, but in case of using it as a template, it will be surrounded with zero pixels. Would it influence on searching results?

To do color pattern matching, you will always have a rectangular template image.  Depending on your application you may want to try doing geometric matching to limit your image to only that portion that you are wanting to search through.
Regards,
Jasper S

Similar Messages

  • Is it possible to use non gif/jpg images in Swing?

    hi,
    is it possible to use bmp, png or other formats in Swing (eg as part of ImageIcon) without using the imaging libraries?
    I can't find anything in the docs but was hoping its supported somewhere?
    thanks,
    asjf

    I know you can load and display a PNG image just the way you do for a GIF/JPEG one :
    ImageIcon myIcon = new ImageIcon("my_icon.png");but I don't think many others formats are recognized by j2se... you can simply try to load a BMP file to find out.

  • Dealing with non-square pixels from video capture (CS3)

    Hi all,
    This is the problem I have : I watch a video on my PC using any utility such as, for example, CyberLink's PowerDVD. I pause the movie to capture a frame to the Clipboard, then I paste it into PS CS3 via a newly created document.
    Because the movie was shot and recorded on the DVD in widescreen format, therefore using non-square pixels (wider than they are tall), the still image in PS appears "shrunk" horizontally. I then go to Image|Pixel Aspect Ratio and set the ratio to, say, "D1/DV PAL Widescreen (1.42)", as I am in PAL-land. The still image now looks fine, and I can save it, for example in TIFF format ; it will retain its "non-square pixel" attribute, with the black bands on top and at the bottom.
    However, what I utimately want to do is use that still image on the Web, so I need to save it as a JPEG image, and this is where the problem happens : the JPEG conversion reverts those pixels to square ones, whether I use the "Save for Web and Devices..." option, or just the "Save As..." one.
    How can I turn my very heavy TIFF into a much leaner JPEG, while retaining the non-square pixels that give the image its correct proportions ? Is there a way around this problem ?
    I'm not used to dealing with non-square pixel images, so any help and tip will be greatly appreciated. Many thaks in advance.
    Dominic.

    As Zeno said, you can simply copy&paste. Also, there is always an equivalent square pixel format for each anamorphic format that can fully accommodate the image, which would be 1024x576 for PAL widescreen. For more info on PAR conversions, I recomemnd you do some reading in the online help files for After Effects or Premiere Pro.
    Mylenium

  • Problem rotating a non-square image

    I am getting very strange results trying to use an AffineTransform to rotate a rectangular but non-square image. If I pre-define a destination Image, then after using the AffineTransform to filter the source, most of the destination image is black (because the resultant image isn't positioned correctly). This is especially true when I try to rotate an image 90 degrees counter-clockwise, in which case I don't know what happens to the rotated image.
    If I try to just let the filter method produce a new image to return to me, it returns a completely square image, which cuts off some of the image if it isn't square. I'm really lost as to what to try next. Here is my code...
    at = new AffineTransform();
    at.setToTranslation( roiImage.getWidth()/2, roiImage.getHeight()/2);
    at.rotate( Math.toRadians( angle ) );
    at.translate( -roiImage.getWidth()/2, -roiImage.getHeight()/2);
    AffineTransformOp atOp = new AffineTransformOp( at, renderingHints );
    /* construct the new destination image with the correct post-rotation bounds */
    BufferedImage rotatedImage = new BufferedImage( roiImage.getHeight(), roiImage.getWidth(), roiImage.getType() );
    atOp.filter( roiImage, rotatedImage );
    roiImage.flush();
    roiImage = rotatedImage;
    Any ideas on why this might be acting so strange? Can I even use an AffineTransform to rotate a non-square image?

    could you provide me a code sample? I've tried doing it that way as well, but I'm still having troubles. I think I'm just missing something small and simple :-(
    thanks for the quick response.

  • Known Issue: "DNS server could not be reached" when creating or updating a RemoteApp collection using template images for some locales

    When trying to create or update Azure RemoteApp collections that use a template image for some non-EN-US locales, it might fail with error "DNS server could not be reached". You might also see error code "DnsNotReachable". 

    Cause:  There was a issue in Azure in which decimal punctuation was not treated properly if the locale of the template image used a comma (,) instead of a period (.).
    Workaround:  Before a fix was applied, the workaround was to use template images based on a locale that uses a period to delimit decimals, such as EN-US.
    Resolution:  As of March 19, 2015, a fix for this issue has been applied to Azure. You should once again be able to create collections from template images that use non-EN-US locales. If you continue to have this problem, please
    try the workaround. If that works and the only difference in the template images is the locale, please email remoteappforum (at Microsoft). If the workaround does not work, the issue is likely caused by a DNS configuration issue such as:
    No valid forwarders to public DNS servers configured on your internal DNS server(s).
    A valid internal DNS server is not specified on your Azure RemoteApp VNet.
    A VNet or internal network configuration issue is preventing the internal DNS servers from be reached by the VMs in the RemoteApp collection.

  • AME - Windows Media export, default templates and non-square pixels

    In Adobe Media Encoder the default Windows Media export templates have non-square Pixel Aspect Ratio.  In Windows Media Player 9, if you play AME's wmvs with non-square pixels all you get is a vertical line a few pixels wide (though they play fine in WMP10 & 11).
    There is definitely a problem with non-square pixels.
    Using AME, if you create a PAL wmv (720x576 with DV PAL P.A.R.) you get the display problem in WMP9, whereas a D-1 PAL wmv (768x576 with square P.A.R.) will display fine.  If you encode the same content with exact the same settings (codec, resolution, etc) with Microsoft's Windows Media 9 Encoder, the resultant output plays fine regardless of the P.A.R!
    One for you chaps at Adobe I think:
    If Windows Media Encoder can create WMP9 compatible wmvs, why can't Adobe Media Encoder?
    or if there is a problem with non-square PARs, then why is it an option on export - remove it until it is fixed?
    Any support would be greatly appreciated.
    Edmund Barton
    I'm using Prem 4.1 with AME 4.1 against Windows ME 9.  WMP9 is the base player we have to support, so upgrading all the players isn't a option.

    If you can't upgrade the players, then using Windoes Media Enoder may be your only option.  Adobe just came out with a 4.1 patch, so it's unlikely you'll see any more 'fixes' in the very near future.

  • How to Work-around Fixed Border Image used in the template?

    Thanks everyone for the responses to the CSS question posted.  Here's the real problem I was trying to solve, I'd appreciate your learned thoughts and suggestions.
    My son was a good visual eye and he's built a website for a part-time business he's created at college using a downloaded template.  But, he used and modifed the  PHOTOSHOP version and then saved the web sliced output.
    http://www.techcheckuva.com
    Decent looking but all jpg slices so unreadable by Google, etc.  I found the original HTML version of the site and was testing it.
    http://www.techcheckuva.com/ComputerTips/FW264/html/index.html
    But the site "breaks" when the text content is longer than the preset areas, as in:
    http://www.techcheckuva.com/ComputerTips/FW264/html/index1.html
    See -- the border images on the LEFT and RIGHT side move but do not stretch -- leaving white gaps.  Also, the center grey b
    Question: how do I FIX this design so the WHITE Center text area can STRETCH LONGER than the deafult length?
    Is this complex?
    Thanks all, so much.

    Drop shadows can be built into the #Container  background-image like so.
    Remove restrictive height values from your CSS.  Use default CSS positioning (which is no positioning at all) for the primary layout.  All those APDivs are going to drive you nuts.  Alignment can best be achieved with CSS  margins, padding and floats.  Below is a quick and dirty example.
    http://alt-web.com/TEMPLATES/3-col-white-gray.html
    Best of luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • 11g PS2 - Image used in page template not displayed on browser before logi

    Hi All ,
    I have used the company logo and placed it in the page template which has been used to develop the UI.The images are placed in resources/images folder and accessed the same way too.
    Basic form based authentication has been enabed for the application.
    The image is not displayed on the login page. Just displays a [X] and the shortDesc given to the image.
    Once I login I can see the image for the other pages which use the same template.
    Any idea what might be wrong here ?
    Thanks
    Sudipto
    Edited by: Sudipto Desmukh on May 19, 2011 11:49 PM

    Hi Jan ,
    No , I am not able to even access the image directly , it redirects me to the login page.
    This is the tag you asked for -
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>allPages</web-resource-name>
    <url-pattern>/</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>valid-users</role-name>
    </auth-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>adfAuthentication</web-resource-name>
    <url-pattern>/adfAuthentication</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <role-name>valid-users</role-name>
    </auth-constraint>
    </security-constraint>

  • Watermarking over a non-static 3D image? (using javascript?)

    Hi,
    I am trying to resolve the issue I have of not being able to create a watermark to sit permanetly over the top of a non-static 3D image.
    I am aware that I cannot use the normal watermarking method so I have been looking at Javascript methods...
    Im not familair with Javascrpit at all but so far I have a simple script inserted in my console window but am not sure what to do next to get this to activate and work.
    p.s the watermark to be used is a simple jpg. file.
    The javascipt  currently in the console window is.......
    this.addWatermarkFromFile()
        cText:"C:\Documents and Settings\Acomlay\My Documents\EEC watermarking and logo\COPYRIGHT"
        nOpacity: 0.5
    Any help appreciated
    Ali.

    Hi,
    What I mean is... its a 3D CAD model which I have converted in acrobat 9 Pro from Pro Engineer (straight foward 3d pdf). The problem is when I add a watermark using the built in tools....the watermark is displayed correctly but the 3D veiwing of the model is lost and it effectively becomes a flat 2d image.
    My predecessor in this job has told me that originally he had some form of script in place so he could batch the watermarking action to various files, which Is what I need to be able to do.
    Also he said that it was important to set the background to transparent in the 'properties' menu. That is all he can remember.

  • Using RME baseline templates to find non-compliant SNMP strings

    Running LMS3.2.1
    A. Can I run a compliance check using RME baseline template to find devices which have non standard SNMP strings IN ADDITION to the correct one?
    How will the regular expression look like if we want to say
    + snmp-server community cisco123 ro
    + snmp-server community cisco456 rw 1
    - snmp-server community [anything else] ro
    - snmp-server community [anything else] rw [#.*#]
    B. Is it possible to run a clean up job on the violating devices by using DEPLOY (or NetConfig, etc.)?

    - [#snmp-server community (?!cisco123|cisco456).*#]
    + snmp-server community cisco123 RO
    + snmp-server community cisco456 RW
      From the compliance job result GUI, you can deploy the job directly after verifying the results.  When you deploy this template, it will remove any community that does not match "cisco123" or "cisco456", and then add them if the device does not already have them.

  • Non-trival template use

    Hello
    My page design has all the components in the cells of a
    table. I am designing my menus/sub-menu in FW. The changing body of
    each page is in all the sections of the table below the row with
    the menus. I would like to lock all the sections of the table above
    where the content becomes variable and use the wonderful template
    ability to update all subscribed pages. The problem is even though
    I can change the entire page into a template, I cant get it to make
    editable the sections I want. I says "not repeating region" or asks
    what tag attribute I want to make editable. What I want is the
    entire section of the table, the <tr> & <td> down
    to the end of the page to be fully editable. I cant see how it can
    be done.
    I have simulated templates using a master sub-page design
    that all the pages uses, however of course this is explicit and any
    change makes me change each and every link in all the pages. This
    is the reason for templates, I just cant get around their
    restriction. Any ideas?

    > I know it is ungainly, for a number of reasons. How else
    do you create
    > attractive, graphical menus?
    By using any of the methods listed here -
    Check the uberlink and MacFly tutorials at PVII -
    http://www.projectseven.com/
    and the Navbar tutorial/articles at Thierry's place
    http://tjkdesign.com/articles/dropdown/
    Or this one (more recent article):
    http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
    Or to get it done fast, go here -
    http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
    Now - tell me again what your template question is?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "cpanon" <[email protected]> wrote in
    message
    news:essbim$nm8$[email protected]..
    > Hi Murry
    > I know it is ungainly, for a number of reasons. How else
    do you create
    > attractive, graphical menus? Here
    >
    http://www.technologyadv.net/cpanon/index.htm
    is the link to the page.
    > Yes,
    > when a view by source it is frightening. It would not be
    a problem if I
    > could
    > only get the template idea to work. It would be a very
    efficient
    > technique if.
    > Ideas/suggestion? tia.
    >

  • ITunes distorting non-square cover art

    I have some non-square album art that displays in the now playing/selected window with black bars at the top and bottom as expected.  However, the album art is stretched to a square in grid view.  This happens only to some non-square artwork.  For example, Jimmy Eat World's Stay On My Side Tonight is stretched to a square, but Mutemath's self-titled remains a rectangle.  I understand that iTunes resamples album artwork, but how/why is it changing the shape?

    3. Use Media Monkey to remove the embedded artwork in the individual tracks *directly off the iPod* -- not iTunes.
    I've posted elsewhere that artwork seems to take up about 0.5% of the average music file. Removing all artwork on a 160Gb iPod (or 148Gb when 1Gb = 2^9) would save about 0.75Gb - hardly worth all the effort I'd have thought.
    4. Non-square artwork gets resized/cropped as viewed on the iPod.
    While the artwork is resized to fill the display area as far as I can tell it isn't cropped and will retain the original aspect ratio. Generally images that are wider than they are tall break up the smooth line of albums in cover flow and are quite easy to spot.
    tt2

  • Scanning stills in PShop (square vs non-square pixels)

    Hello,
    We need to scan hundreds of still photos for a documentary. We've done this before and are familiar with the whole square pixels (PhotoShop) and non-square pixels (FCP). By the way, we're using PhotoShop 7 and FCP 5.
    In the past we've adjusted our images in PShop (reducing the height) before importing into FCP, and things have turned out nicely.
    But before we tackled this new project, we ran a test and were surprised by the results.
    I don't get the following:
    1. If I make a test image (a red circle) in PShop 7 with an image size of 720x540 pixels, the image looks correctly proportioned in PShop.
    2. If I then make a second test image (the same red circle) -- or duplicate the file from step one -- and then adjust the image size to 720x480, the image looks squished in PShop -- it's an ellipse. But this second version SHOULD be just right for FCP 5.
    3. But when I import both files into FCP 5, they BOTH look just fine. They look exactly the same on the monitor (well, the second one seems to have slightly cleaner edges).
    4. When I analyze each clip's Motion tab, FCP has automatically Distorted the 720x480 PShop file by -12.5 -- and it looks fine: a nice round ball. Meanwhile the 720x480 PShop file (the one adjusted in PShop for FCP) has NO Distortion, looks exactly the same. Both versions are perfectly round in FCP. You can toggle from last frame to first frame across the edit and nothing changes.
    Hmmm, is FCP recognizing a sq pixel image and automatically adjusting? And if so, how does it know to distort one file but not the other?
    Then it gets more interesting when I scan a test photo and:
    5. I scan an image at 300 dpi (overscanned so we can move on the image in FCP) and the image is 2084x1488. When I bring this image into FCP 5 (or in FCP 4 for that matter) ... anyway, when I bring this image into FCP 5 if looks great even though it has square pixels and has NOT been prepped in PShop for FCP. It has NOT been squished by FCP. When I check the motion tab, it has been scaled down to 34.55% (that's fine) and distorted by -12.5. It's behaving like the round ball test in No. 1 above.
    6. Meanwhile if I take this same image and adjust it for FCP (2084x1324) and bring it into FCP, it looks just right, too. The motion tab shows that FCP has scaled it 38.83% (that's fine) but now it has ALSO distorted it by -12.5. So it is NOT behaving like the ellipse in No. 2 above (which had ZERO distortion)?
    Regardless, I wonder if any one can tackle this so we understand what's gong on. And the big question is: Why are we taking that step to prep the PShop files for FCP, if FCP seems to handle either version properly? We'd save a lot of time if we didn' take this step in PShop for hundreds of photos ...
    Thanks in advance for taking time to comment. This is a wonderful forum and we're always amazed at how kind and sharing contributors are.
    Brad

    "FCP has automatically Distorted the 720x480 PShop file by -12.5"
    That should probably read 720x540.
    Yes, FCP does the distortion automatically. It's done this since v3. The problem is, as you've noticed, it doesn't do it nearly so well as Photoshop. Yes, you could let FCP do it for you, but it will soften the image more than you might like. There is also one caveat. This only works for flattened images, images imported as graphics files. Other PSD files with layers or transparency that import as sequences will not be automatically resized when they are placed inside another sequence.

  • VDM 2012 SP1 Algorithms​.MatchPatt​ern2 disposes of the template image

    My application requires fairly quick repetitive image acquisition and processing (<100ms per cycle). Kind of "realtime" processing, I'd prefer not doing post image processing. 
    Currently the image processing takes ~200ms per cycle (mostly grey image pattern matching).
    ~150ms of this time is taken by loading the template images from disk or cloning  the template images  (using the visionimage flatten/unflatten).
    The reason for reloading or cloning is that the Algorithms.MatchPattern2 disposes of the template image during execution i.e. I must reload or clone template images every acquisition/processing cycle.
    Ideally, at configuration I would like to provide 1x set of template images to the processing application which is reused (without cloning) every processing cycle allowing for a ~50ms process time.
    Any fixes or workaounds?

    Hi Nemith,
    My understanding has been that none of the vision functions dispose of the image in memory unless explicitly told to do so. Does contradict what you have experienced so far?
    Also, for your benefit, I would recommend posting your question on our Machine Vision forums too, where you may find more people answering: http://forums.ni.com/t5/Machine-Vision/bd-p/200.
    Rahul B.
    Applications Engineer
    National Instruments

  • Pages 08 Template images -where are they saved?

    I know Pages 08 does not have clip art but I like many of the pictures on the templates. I want to use some of the template images (like the cat.tiff or frog.tiff) on a blank document. Copying & pasting works but I'd rather be able to see all the template tiffs at once. Where are the template images(tiffs) located on my hard drive. Is there a specific iWork folder I can find them in?

    Welcome to Apple Discussions
    The images are "buried" in each template which is buried in the Pages application. You can find them by Control- or right-clicking on the Pages application > Show package contents > Contents > Resources > Templates & then the folder for the template category you want. Then Control- or right-clicking on the template icon > Show package contents > Contents where you will find the actual images.
    Or you can just copy & paste from an open template.

Maybe you are looking for

  • How to set message id for JMS

    Hi All, I set up the JMS connection with JBoss, and send the message asynchrously to JBoss successfully. But right now, Jboss need to use the incoming message ID as correlation ID in Jboss. How could i set the message id from payload (not PI message

  • Why is my outlook account on iOS mail not logging in?

    I have an outlook account that was logged in and used to work on the mail app on my iPhone 4s. Then it stopped receiving mail so I logged the account out and logged back in and a message keeps on popping up saying that it is unable to verify the acco

  • Macbook Air HD video

    My 1 year old Macbook Air (Late 2010), which I think is supposed to have 5 hour battery life, isn't quite as fast. My battery was 65%, and after watching a 1 hr 30 min movie, it is now 15%. The movie was in HD, but I don't know if that has to do with

  • Optical out then back to analog?

    Is that even possible? My AE has stopped outputting the right channel. I have read that some people have had luck using an optical connection to get a stereo connection back when the analog fails. I can't seem to find any info about "dumbing" an opti

  • SAP BW-HR Score Card- Is there any transaction?

    Hi All! I am quite new to the Scorecard concept. I would like to know if anyone has worked on a HR-BW scorecard. Please post the transaction and framesheet links if possible. If not please share your experience. I have gone through the SEM-CPM scorec