Get Image Subset VI ignores original image offset

Hi,
I'm have a problem with Get Image Subset VI.
My program gets original image rectangle from a image and apply a offset for draw in a picture control.
But the image cannot across a region delimited by another rectangle. So, i use Get Image Subset with a
image (with offset) and a deilimiter rectangle. 
I give the same subset of image with and without offset.
Attachments:
test3.vi ‏12 KB
servidor_g.png ‏3 KB

In my opnion the correct result is the highlighted are in the Original Picture With Offset (See attached image ) and not Image Subset.
Attachments:
imagem.GIF ‏20 KB

Similar Messages

  • Show image quality as like original image after resize in as3.

    Hi Guys,
    I am working on a Action Script3 project and i am showing images after resizing. I am using Bitmap and BitmapData manipulation for this but not getting image quality as like original image.  Please guide and help me with code that how can i do this.
    Thanks & regards
    Rangrajan

    How are you resizing? Normally, you would draw the original bitmap data into the new bitmap data, using a matrix to resize. To smooth scale, you need to use the smoothing option of the draw method. Here's a little sample that takes a library image and scales it to 500x500, using smoothing:
    var orig:BitmapData = new baseMap(); //library image
    var res:BitmapData = new BitmapData(500,500);
    var m:Matrix = new Matrix();
    m.scale(res.width / orig.width, res.height / orig.height);
    res.draw(orig, m, null, null, null, true);
    var c:Bitmap = new Bitmap(res);
    addChild(c);
    toggle the true to false in the draw, to see the difference...

  • The selected original image is either offline or not found. Please reconnect it and try again.

    Hi to all, This is my first time here. I am having a problem that I've never had before. I am attempting to upload images to Flickr, which I do daily without trouble. However, this time I'm getting the message: "The selected original image is either offline or not found. Please reconnect it and try again." I am doing searches on my MacBook by copying and pasting the jpeg name in to the finder and they seem to be gone. I have taken special care to file my photos in certain folders. Either I have inadvertanly deleted entire folders or something very odd has happened. Can anyone shed any light on this? Thank you

    Hi, Thank you for the response.
    I'm on 10.7.5 OS
    Ver. 3.4.3 Aperture
    I have a folder on my desktop named "photo imports" I insert my card to the reader on my MacBook Pro and copy the files in to a folder nested within the Photo imports according to which camera I am using or sometimes it is a special project. This folder is on my computer's hard drive. 
    I then go in to Aperture and click "Import" I select in the "Store Files" menu: "in their current location"
    This has been working nicely for me. I use Time Machine on a somewhat regular basis and I also use other editing software like Picassa and View NX2 (Nikon software)
    I suppose that it is possible that I accidently dragged my folder in to the trash, but I really do try to be careful about that sort of thing. I have gone back in to Time Machine and have been unable to find the files. It is vexing. My granddaughter has been asking me for those particular pictures and the only way to view them is in Aperture on my computer because I am unable to email or export them in any way.

  • Original Image Resolution and Color getting Distorted

    Hi All,
    I am using JAI for reading images from a source i have to read the images and than have to split the images
    initially i was using ImageIO.read() method to read images but for some images it was throwing error as
    javax.imageio.IIOException: Unsupported Image Type
         at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(Unknown Source)
         at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Source)
         at javax.imageio.ImageIO.read(Unknown Source)
         at javax.imageio.ImageIO.read(Unknown Source)
         at deepzoomconvertor.Main.loadImage(Main.java:370)
         at deepzoomconvertor.Main.processImageFile(Main.java:238)
         at deepzoomconvertor.Main.reteriveAllImages(Main.java:221)
         at deepzoomconvertor.Main.main(Main.java:86)so in such exception cases i am trying to read the images using JAI and i am successful in reading images
    here is the piece of code i am using for this
      BufferedImage result = null;
       SeekableStream ss=SeekableStream.wrapInputStream(new FileInputStream(file), false);
               ParameterBlock pb = new ParameterBlock();
               pb.add(ss);
               RenderedOp rm=JAI.create("JPEG", pb);
               result=rm.getAsBufferedImage();
                 return result;it able to split images but the quality of images are poor it losts its original color format.
    can any one have any idea how to do it while retaining the quality of image color and resolution
    Thanks in advance
    Umesh

    The JPEG you are reading is a cmyk color space one. They're not common, but they do occasionally pop up in a collection of random jpeg images.
    The default JPEGImageReader that comes with the jdk cannot read them. And it will throw an exception - the exact same one you got - stating it can't. JAI's behavior is a little worse. It will read the image without exception, when in fact it to can't read it. It doesn't handle the cmyk aspect right, so you get a messed up image.
    The native JPEGImageReader that comes with installing [JAI-ImageIO|https://jai-imageio.dev.java.net/binary-builds.html] can read them. It appropriately decodes the ICC_Profile embedded within the JPEG and you get a cmyk BufferedImage. But if you wish to render this TYPE_CUSTOM BufferedImage, go grab a coffee while you wait for it to slooooowwwllly paint. You'll have to do a ColorConverOp to turn the cmyk BufferedImage into an rgb one (so Java2D can render it fast).
    Having done all this you'll find that 1) ColorConvertOp makes the image too bright and 2) The native PNGImageReader that comes with installing JAI-ImageIO has an affinity for returning TYPE_CUSTOM BufferedImages (arggg!!!).
    I'll help you fix points (1) and (2) if you get that far. Maybe the best choice is to simply give up on cmyk jpegs. They're only used in printing press environments, and people only use color space aware applications (like Photoshop) to manipulate them in any meaningful way.

  • Photoshop CC: Have a template that I moved image into.  Image is too small.  How do I resize the image while in the template?  Or must I go to original image file and resize there again and again until I get the right fit?

    I have a template that I am able to plug different pictures into at different times.  The problem is that when I plug an image into that template, I find that the image is either too big or too small.  Is there a way to plug the image into the template and resize the image (and not the template itself) OR will I have to go to the file with the original image and resize it there and then try to plug it in to the template to see if it fits------and if it does not fit, go back to the original file with the image and resize it again and see if that fits---and so on and so on...........?  I have tried the" image size" option but it's hit or miss------mostly miss!
    Thanks!

    Read up on Smart Objects. It looks like you have no idea as to how to create and use them.
    Jut create a Smart Object from the layer containing whatever it image it is that you are "plugging into your template".  But you do need to learn the application at its most basic levels.
    Photoshop is a professional level application that makes no apologies for its very long and steep learning curve.  You cannot learn Photoshop in a forum, one question at a time.
    Or is it possible that you don't even have Photoshop proper but the stripped-down Photoshop Elements?"
    If the latter is the case, you're in the wrong forum.  This is not the Elements forum.
    Here's the link to the forum you would want if you're working in Elements.:
    https://forums.adobe.com/community/photoshop_elements/content
    If you do have Photoshop proper, please provide the exact version number of that application and of your OS.
    (edited for clarification)

  • Getting back original image

    Hello.
    I am using Labview 2010 version to develop a program to load an image and process them using threshold.  I would like to compare the original image with the threshold image. Can anybody help me to show me some guides how to find back the original image because what I got is a blank image? Below is the attachment of my coding.
    Thank you.
    Attachments:
    Untitled 10.vi ‏72 KB

    raw files never have their data altered, that's one of the advantages of using them. Select the file in Bridge and go to Edit->Develop Settings->Clear Settings to wipe all the edits that you made to it

  • Getting the bounds of a drawn image on a panel

    Hello, I have a problem with getting the bounds of a drawn image on a panel...Since it is drawn as graphics, i tried getClipBounds and since my class extends JPanel i tried to get the bounds from the panel but neither of them worked properly. It only gets the bounds of a jframe that contains the panel.Then i tried to put the panel in a layeredpane and then a container; but this time the image disappeared completely. Hope someone can help or tell me what I am doing wrong. Thanks in advance. Here is the code below:
    By the way what I am trying to do in this code is basically zooming the image in and out by dragging or the mouse wheel. But I need to get the bounds so that I can use this.
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    * @author Admin
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Image;
    import java.awt.Point;
    import java.awt.RenderingHints;
    import java.awt.Toolkit;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseMotionListener;
    import java.awt.event.MouseWheelEvent;
    import java.awt.event.MouseWheelListener;
    import java.awt.geom.AffineTransform;
    import java.awt.geom.NoninvertibleTransformException;
    import java.awt.geom.Point2D;
    import javax.swing.JFrame;
    import javax.swing.JLayeredPane;
    import javax.swing.JPanel;
    public class ZoomDemo extends JPanel {
    AffineTransform tx = new AffineTransform();
    String imagePath = "D:/Documents and Settings/Admin/Belgelerim/tsrm/resim.jpg";
    Image image = Toolkit.getDefaultToolkit().getImage(imagePath);
    int width = image.getWidth(this);
    int height = image.getHeight(this);
    int scrwidth = Toolkit.getDefaultToolkit().getScreenSize().width;
    int scrheight = Toolkit.getDefaultToolkit().getScreenSize().height;
    double zoomfac = 1.0;
    int xAdj;
    int yAdj;
    int prevY;
    double scale = 1.0;
    Point pt;
    public static int x;
    public static int y;
    public static int w;
    public static int h;
    public ZoomDemo() {
    this.addMouseWheelListener(new ZoomHandler());
    this.addMouseListener(new ZoomHandler());
    this.addMouseMotionListener(new ZoomHandler());
      repaint();
    @Override
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D) g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    g2.drawImage(image, tx, this);
    // x =    (int) g2.getClipBounds().getX();
    // y=     (int) g2.getClipBounds().getY();
    // w=     (int) g2.getClipBounds().getWidth();
    // h=     (int) g2.getClipBounds().getHeight();
    // System.out.println(x+" "+y+" "+w+" "+h);
    //  public int getRectx(){
    //    return x;
    //public int getRecty(){
    //    return y;
    //public int getRectw(){
    //    return w;
    //public int getRecth(){
    //    return h;
    private class ZoomHandler implements MouseWheelListener,MouseListener, MouseMotionListener {
    public void mousePressed(MouseEvent e){
        System.out.println("Mouse Pressed");
    xAdj = e.getX();
    yAdj = e.getY();
    prevY = getY();
    public void mouseDragged(MouseEvent e){
           System.out.println("Mouse Dragged");
    boolean zoomed = false;
    if(e.getY()<prevY){
         zoomfac = zoomfac + 0.1;
         prevY = e.getY();
         zoomed = true;
    else if(e.getY()>prevY){
         zoomfac = zoomfac - 0.1;
         prevY = e.getY();
         zoomed = true;
       scale = zoomfac;
    Point2D p1 = new Point((int)xAdj-(width/2),(int)yAdj-(height/2));
    Point2D p2 = null;
    try {
    p2 = tx.inverseTransform(p1, null);
    } catch (NoninvertibleTransformException ex) {
    // should not get here
    ex.printStackTrace();
    return;
    tx.setToIdentity();
    tx.translate(p1.getX(), p1.getY());
    tx.scale(scale, scale);
    tx.translate(-p2.getX(), -p2.getY());
    tx.transform(p1, p2);
    ZoomDemo.this.revalidate();
    ZoomDemo.this.repaint();
    public void mouseWheelMoved(MouseWheelEvent e) {
    if (e.getScrollType() == MouseWheelEvent.WHEEL_UNIT_SCROLL) {
    Point2D p1 = e.getPoint();
    Point2D p2 = null;
    try {
    p2 = tx.inverseTransform(p1, null);
    } catch (NoninvertibleTransformException ex) {
    // should not get here
    ex.printStackTrace();
    return;
    scale -= (0.1 * e.getWheelRotation());
    scale = Math.max(0.1, scale);
    tx.setToIdentity();
    tx.translate(p1.getX(), p1.getY());
    tx.scale(scale, scale);
    tx.translate(-p2.getX(), -p2.getY());
    ZoomDemo.this.revalidate();
    ZoomDemo.this.repaint();
            public void mouseClicked(MouseEvent e) {
                //throw new UnsupportedOperationException("Not supported yet.");
            public void mouseReleased(MouseEvent e) {
                //throw new UnsupportedOperationException("Not supported yet.");
            public void mouseEntered(MouseEvent e) {
               // throw new UnsupportedOperationException("Not supported yet.");
            public void mouseExited(MouseEvent e) {
               // throw new UnsupportedOperationException("Not supported yet.");
            public void mouseMoved(MouseEvent e) {
               // throw new UnsupportedOperationException("Not supported yet.");
    public static void main(String[] args) {
    //SwingUtilities.invokeLater(new ZoomDemo());
    int scrwidth = Toolkit.getDefaultToolkit().getScreenSize().width;
    int scrheight = Toolkit.getDefaultToolkit().getScreenSize().height;
    JFrame f = new JFrame("Zoom");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.setSize(scrwidth , scrheight);
    //JLayeredPane lp = new JLayeredPane();
    //f.add(lp);
    ZoomDemo zd = new ZoomDemo();
    zd.getBounds();
    f.add(zd);
    //int x = (int) zd.getX();
    //int y = (int) zd.getY();
    //int w = (int) zd.getWidth();
    //int h = (int) zd.getHeight();
    //System.out.println(x+" "+y+" "+w+" "+h);
    //zd.setBounds(x ,y ,w ,h );
    //lp.add(zd, JLayeredPane.DEFAULT_LAYER);
    //f.setLocationRelativeTo(null);
    f.setVisible(true);
    //lp.setVisible(true);
    //zd.setVisible(true);
    }Edited by: .mnemonic. on May 26, 2009 11:07 PM
    Edited by: .mnemonic. on May 27, 2009 11:00 AM

    You'll need a stable point in the component to track and orient to the scaling transform(s).
    From this you can construct whatever you need in the way of image location and size.
    Let's try a center&#8211;of&#8211;image tracking point:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    public class ZD extends JPanel {
        BufferedImage image;
        Point center;
        AffineTransform at = new AffineTransform();
        Point2D.Double origin = new Point2D.Double(0,0);
        public ZD(BufferedImage image) {
            this.image = image;
            center = new Point(image.getWidth()/2, image.getHeight()/2);
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                                RenderingHints.VALUE_INTERPOLATION_BICUBIC);
            g2.drawRenderedImage(image, at);
            g2.setPaint(Color.red);
            g2.fill(new Ellipse2D.Double(origin.x-1.5, origin.y-1.5, 4, 4));
            g2.setPaint(Color.blue);
            g2.fill(new Ellipse2D.Double(center.x-1.5, center.y-1.5, 4, 4));
        private void setTransform(double scale) {
            // keep image centered over Point "center"
            double x = center.x - scale*image.getWidth()/2;
            double y = center.y - scale*image.getHeight()/2;
            origin.setLocation(x, y);
            at.setToTranslation(x, y);
            at.scale(scale, scale);
        public static void main(String[] args) throws java.io.IOException {
            java.net.URL url = ZD.class.getResource("images/hawk.jpg");
            BufferedImage image = javax.imageio.ImageIO.read(url);
            ZD test = new ZD(image);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(test);
            f.setSize(500,500);
            f.setLocation(100,100);
            f.setVisible(true);
            test.addMouseListener(test.mia);
            test.addMouseMotionListener(test.mia);
        /** MouseAdapter okay in j2se 1.6+ */
        private MouseInputAdapter mia = new MouseInputAdapter() {
            final double SCALE_INC = 0.05;
            final int SCALE_STEP = 20;
            double scale = 1.0;
            double lastStep;
            public void mousePressed(MouseEvent e) {
                Point p = e.getPoint();
                center.setLocation(p);
                //System.out.printf("center = [%3d, %3d]%n", p.x, p.y);
                setTransform(scale);
                repaint();
            public void mouseDragged(MouseEvent e) {
                // scale up/down with relative vertical motion
                int step = (e.getY() - center.y)/SCALE_STEP;
                if(step != lastStep) {
                    scale += SCALE_INC*((step < lastStep) ? -1 : 1);
                    //System.out.printf("step = %3d  scale = %.3f%n", step, scale);
                    setTransform(scale);
                    lastStep = step;
                    repaint();
    }

  • Has anyone had the error "The file could not be read due to an error" when selecting ignore or replace image links. The linked images are in Dropbox if that helps.

    I am working on a Mac 10.9.5 with Adobe CS6. My files are locally in Dropbox but once we moved files to network and tried opening the AI - the file would not recognize the original folder location. I tried ignoring the missing images but then I receive the error - The file could not be read due to an error." The same error happens when I try replacing the first missing image. I know the problem lies in the images are linked back to my Dropbox but the AI file doesn't care since it won't let me replace or ignore the image links.

    Jasion,
    Maybe a bit beside the question, but it is always recommended here to open/save from/to own hard disk, and to copy from/to networks and removable media. You may be lucky, at least for a while, but it is better to be safe than sorry.
    In addition to the (far greater) risk of file corruption, some issues are mentioned here:
    http://helpx.adobe.com/illustrator/kb/illustrator-support-networks-removable-media.html

  • "The picture could not be opened because the original image could not be found."

    "The picture XXXXX.jpg could not be opened because the original image could not be found." - I've translated from Portuguese, so it's possible to contain errors on text but I think it is clear to understand.
    This error message has appeared on my screen for a thousand times, repeatedly. I've canceled everyone, but still appears,how this error has ocurred for every picture in my library.
    I gave up, I'm tired to cancel every window. I don't know what to do. And worst, I'm not able to open Settings or any other command, only "Cancel" or "Search Image", and it opens a Finder window that doesn't give me access to iPhoto Library.

    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    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.  

  • Problem In moving 1 image from 1 panel to next and maintain size of original image?

    Why is it when i drag one image from the bottom panel over to another picture(solid color) i will only get 50% of the image and not the full image. Same thing when i copy and paste that image over the gray solid colored image also i will get only 50% of the image.  The original image of the cat(full view) is about 24.79%  and picture is 11.733 x 15.644 in size.  the other image (solid color) is at 43.63%  or 6.667 x 8.889". size is in inches. Do i have to resize the images and if so how as i am a stupie in this matter. The images are aligned side by side on the main panel or display.I am trying to place the cat over the gray background image  and with a layer mask delete the present baackground of the cat to uncover the gray of the bottom layer.  Thanks!!

    Probably the resolution of each image has a different value. You can check this in Image>resize>image size. The resolution is expressed in px/in.
    If you are attempting to place the cat on a plain gray background, try this:
    Set your foreground color chip  (lower left) to the shade of gray desired
    Open the picture with the cat
    Using one of the selection tools (e.g. Selection brush, lasso), select the cat
    Place the cat on a separate layer (Layer>new>layer via copy)
    Place a blank layer between the background layer and the cat layer
    Fill the blank layer with gray ( Edit>fill layer>foreground color)
    Use the move tool to position the cat, and resize, if necessary, with the corner handles of the bounding box.

  • Convert original image to sharp Line art?

    Dear All,
    I have a image i want to convert orginal image to sharp lineart how can i do photoshop CS3 please help me.
    one reference image is attached

    As others have said I dont think you will be able to convert the image you have posted to look like the result you want from the other image you posted, the detail in the original is just to high. I use the method described below for doing my line art in Photoshop and it works well but you seem to want to reduce your image to a much simplier representation. I have used this site before, it used to be free but now I think you only get a couple of free credits when you join, convert a photo to line drawing, quite simple to use and you can select to remove noise which might reduce the complexity of the original image.
    In Photoshop try:
    Duplicate original layer
    Change top layer color mode to color dodge
    Invert top layer
    Apply Gaussian blur (choose low pixel radius for less detail so reducing image complexity)
    Add adjustment layer and set saturation to be -100
    Retouch anywhere with brush tool to complete

  • Why is saturation reduced in my HDR results when comparing with the original images?

    Yesterday I took several sets of RAW images with Panasonic LX3 to perform HDR.
    However, the HDR results look less colorful than the original images, they became dreamy, blurry and unrealistic.
    Is it because every set only has 3 images with different exposures?

    You would probably get a better answer if you posted this in the Photoshop forum. This forum is for Lightroom, which is a quite different animal.
    Hal

  • How do I get rid of the annoying Improve Images tooltip?

    The improve images tooltip is sooo annoying!
    How do I get rid of it?

    Hi gdav, it depends. If you don't mind having the images compressed and just want to get rid of the messages, you can try to filter or block the script that generates the tooltips. If you want to get the original images, you need to figure out whether you can change the settings in your connection software.
    If you search on the following page for AdBlock, you will see a suggestion for one way to filter the script. Note that each ISP might have a different name and address for its script, so you probably need to take a peek at the source code (Ctrl+u) for a simple page, or a few different pages, to spot the one that's coming from your ISP's server.
    [http://social.msdn.microsoft.com/forums/en-US/iewebdevelopment/thread/3e265aaa-6563-41e8-adf5-9efb192ecbee/ SHIFT+R improves image quality]

  • Deleting original images in referenced library

    Stupid question - but how do you delete original images in a referenced library?  I have used the function "File>Delete original image and all versions" and I thought that this had permanently deleted some originals that I didn't want - but when I look in finder, they're still there on the hard drive, they just don't display any more in Aperture.  I can't believe you have to go and find the original file in finder to delete it...?  What have I missed?
    Thanks!

    OK, have worked out that when I empty the aperture trash I need to tick the little box that says 'move referenced files to system trash' or something like that...
    So...next question: how do I get the files that I've failed to delete properly back into Aperture so I can delete them properly - given that I don't know what files they are...

  • Trying to upload from iPhoto to iWeb maintaining original image size

    I've used Ofoto (now Kodak Gallery) for years and the images I upload are the image size and quality that appears. (Even though it's in thumbnail view.)
    Now when I upload iWeb seems to reduce that size of my image dramatically.
    I did load one photo at original size, but it was huge. When I used Ofoto the thumbnails were all small, but you could get a poster size print because the ultimate quality was there.
    I'm wanting to do this so friends who wish to make enlargements after downloading images have a good quality and size to begin with.
    Thank you for any insights...
    Regards,
    Tim B.

    Make sure that "Optimize Images on Import" is unchecked in iWeb preferences.

Maybe you are looking for