To convert an rgb image to 8 bit grayscale

Hey,
I need to convert an rgb image to 8 bit grayscale image as the image is being acquired, im using the imaq create VI, which has an 'image type' terminal which allows the choice of image to be selected.however this isnt working. any solutions?
also
Im trying to make a image constant for the imaq subtraction VI, so the this constant image is subtracted from each image as its acquired.what would be the easiest way of doing this, without having the user specify the same image path each time? thanks.

Not sure what you mean by extracting a plane?
Here is a VI that will convert an image to 8-Bit.  This paired with the grayscale one will get the desired result.  See example.vi below.  Order that they are applied does give slightly different results.
LV 8.0 through 2013, Win 7
CLA
Attachments:
example.vi ‏12 KB
QSI Convert to 8-Bit Image.vi ‏22 KB
QSI Grayscale Image.vi ‏28 KB

Similar Messages

  • How do I convert complex images to 8-bit grayscale images?

    I made a fourier transform of a greyscale image and want save this pictures as greyscale pictures. I can see the picture on the monitor, but I can't get it converted.

    Just found the solution after a lot of trials.
    You do the fourier transform, use IMAQ ComplexFlipFrequency, extract the magnitude plane as an array,take the absolute value, divide by 620,000, multiply by 256, set all values greater than 255 to 255, convert to an unsigned integer array, convert to U8-image.
    I don't know why the magic number is 620,000. I found it by trial and error.

  • How did I accidentally convert all my images to 8-bit?

    Hello,
    Five minutes ago, I verified that my image in Camera Raw prior to importing into Adobe Photoshop CS6 was in 16-bit mode.
    Immediately after I imported it into Photoshop and it became a .psd document, I verified once again that it was still in 16-bit mode.
    Then I created a duplicate layer, selected the sky, and created a layer mask from that selection.
    No big deal.
    NOW I SEE, per the below, that I am in 8-bit mode.
    Why is that?
    Is it true that ANY MASK I create forces the entire image into 8-bit mode?
    Thanks!

    Thanks fellows.
    I'm working in CS6 with a MacPro desktop tower with 18 gigs of RAM.
    I will be in a remote location planting trees as part of a project for the next several days, so I will return to this next week and bring more helpful facts to the discussion after checking my History Panel.
    When I am in Camera Raw, I make my desired changes and then click "Open", I thought all documents become a PSD document in Photoshop for me.  Perhaps I am mistaken in that regard and have inadvertently omitted a few steps in my described workflow.
    When I check that initial .PSD image, I recall it saying 16 bit, which is good.
    I will check the history panel on a test image upon my return so that we will have more facts next week.
    Thanks!

  • How to create Image from 8-bit grayscal pixel matrix

    Hi,
    I am trying to display image from fingerprintscanner.
    To communicate with the scanner I use JNI
    I've wrote java code which get the image from C++ as a byte[].
    To display image I use as sample code from forum tring to display the image.
    http://forum.java.sun.com/thread.jspa?forumID=20&threadID=628129
    import java.awt.*;
    import java.awt.color.*;
    import java.awt.image.*;
    import java.io.*;
    import java.util.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class Example {
    public static void main(String[] args) throws IOException {
    final int H = 400;
    final int W = 600;
    byte[] pixels = createPixels(W*H);
    BufferedImage image = toImage(pixels, W, H);
    display(image);
    ImageIO.write(image, "jpeg", new File("static.jpeg"));
    public static void _main(String[] args) throws IOException {
    BufferedImage m = new BufferedImage(1, 1, BufferedImage.TYPE_BYTE_GRAY);
    WritableRaster r = m.getRaster();
    System.out.println(r.getClass());
    static byte[] createPixels(int size){
    byte[] pixels = new byte[size];
    Random r = new Random();
    r.nextBytes(pixels);
    return pixels;
    static BufferedImage toImage(byte[] pixels, int w, int h) {
    DataBuffer db = new DataBufferByte(pixels, w*h);
    WritableRaster raster = Raster.createInterleavedRaster(db,
    w, h, w, 1, new int[]{0}, null);
    ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);
    ColorModel cm = new ComponentColorModel(cs, false, false,
    Transparency.OPAQUE, DataBuffer.TYPE_BYTE);
    return new BufferedImage(cm, raster, false, null);
    static void display(BufferedImage image) {
    final JFrame f = new JFrame("");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(new JLabel(new ImageIcon(image)));
    f.pack();
    SwingUtilities.invokeLater(new Runnable(){
    public void run() {
    f.setLocationRelativeTo(null);
    f.setVisible(true);
    And I see only white pixels on black background.
    Here is description of C++ method:
    GetImage
    Syntax: unsigned char* GetImage(int handle)
    Description: This function grabs the image of a fingerprint from the UFIS scanner.
    Parameters: Handle of the scanner
    Return values: Pointer to 1D-array, which contains the 8-bit grayscale pixel matrix line by line.
    here is sample C++ code which works fine to show image in C++
    void Show(unsigned char * bitmap, int W, int H, CClientDC & ClientDC)
    int i, j;
    short color;
    for(i = 0; i < H; i++) {
         for(j = 0; j < W; j++) {
         color = (unsigned char)bitmap[j+i*W];
         ClientDC.SetPixel(j,i,RGB(color,color,color));
    Will appreciate your help .

    Hi Joel,
    The database nls parameters are:
    select * from nls_database_parameters;
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CHARACTERSET CL8MSWIN1251
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_RDBMS_VERSION 9.2.0.4.0
    Part of the email header:
    Content-Type: multipart/alternative; boundary="---=1T02D27M75MU981T02D27M75MU98"
    -----=1T02D27M75MU981T02D27M75MU98
    -----=1T02D27M75MU981T02D27M75MU98
    Content-Type: text/plain; charset=us-ascii
    -----=1T02D27M75MU981T02D27M75MU98
    Content-Type: text/html;
    -----=1T02D27M75MU981T02D27M75MU98--
    I think that something is wrong in the WWV_FLOW_MAIL package. In order to send 8-bit characters must be used UTL_SMTP.WRITE_ROW_DATA instead of the UTL_SMTP.WRITE_DATA.
    Regards,
    Roumen

  • How to convert 24bits png image into 8 bits image

    Hi,
    I have gone through some of threads in this forum on changing color bits. But, I still can find right way to change my image (24bits) into different color bits(8 bits). The reason i want to change the color bits because I am getting a GIF image from map server, convert it into PNG format then rescale then into size of mobile phone screen.The PNG image is really has large data length , so the it took a while to load the whole image on screen.
    Note : The following code is taken from few threads in this forum and i have modified it to suit my application.
    I have no idea about Java2d...any help really appreciated...Thanks in advance!!!
    My code is as follow:-
    public File Scale(int width, int height, BufferedImage ImgSrc)
         try
                   //BufferedImage bi = ImageIO.read(ImgSrc);
                   //int w = bi.getWidth(), h = bi.getHeight();
         //Image oldRescale = bi.getScaledInstance(i, j, Image.SCALE_SMOOTH);
         BufferedImage Rescale = rescale(ImgSrc, width, height);
                   //ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);
                   //ColorConvertOp op = new ColorConvertOp(cs, null);
                   //Rescale = op.filter(Rescale, null);
         File outfile = new File("map.png");
                   ImageIO.write(Rescale, "png", outfile);
                   BufferedImage fromFile = ImageIO.read(outfile);
                   ColorModel cm = fromFile.getColorModel();
                   System.out.println(cm.getClass() + ", bits/pixel=" + cm.getPixelSize());
              catch(Exception e)
                   e.printStackTrace();
              return new File("map.png");
         public static GraphicsConfiguration getDefaultConfiguration()
    GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
    GraphicsDevice gd = ge.getDefaultScreenDevice();
    return gd.getDefaultConfiguration();
         public static BufferedImage copyRescaled(BufferedImage tgt, BufferedImage src)
              Graphics2D g2 = tgt.createGraphics();
    int w=tgt.getWidth(), h=tgt.getHeight();
    hintForBestQuality(g2);
         g2.drawImage(src, 0, 0, w, h, null);
         g2.dispose();
    return tgt;
    public static Graphics2D hintForBestQuality(Graphics2D g2)
    g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
              RenderingHints.VALUE_INTERPOLATION_BILINEAR);
    g2.setRenderingHint(RenderingHints.KEY_RENDERING,
              RenderingHints.VALUE_RENDER_QUALITY);
    return g2;
         public static BufferedImage rescale(BufferedImage src, int w, int h)
    int transparency = src.getColorModel().getTransparency();
    GraphicsConfiguration gc = getDefaultConfiguration();
    BufferedImage tgt = gc.createCompatibleImage(w, h, transparency);
    return copyRescaled(tgt, src);

    First, we need to be clear about what you're trying to do -- is it rescale an
    image or insure that the image is saved with a 8bit pixel depth? Or both? You are also
    using GraphicsConfiguration's createCompatibleImage, which is excellent if you are going
    to display the image immediately because it might be hardware accelerated
    or compatible with hardware format, but you mentioned mobile phone screens, so
    there is no advantage to using GraphicsConfiguration in that case, and if fact, it's
    probably changing your ColorModel when you're not looking.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.io.*;
    import java.net.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class Example {
        public static void main(String[] args) throws IOException {
            URL url = new URL("http://java.sun.com/developer/technicalArticles/GUI/JavaServerFaces/fig2.gif");
            BufferedImage image = ImageIO.read(url);
            System.out.println("image's colormodel = " + image.getColorModel().getClass());
            BufferedImage rescaled = scaleAndConvertColorModel(image, 0.75, null); //GIF => IndexColorModel
            System.out.println("rescaled's colormodel = " + image.getColorModel().getClass());
            File png = new File("junk.png");
            ImageIO.write(rescaled, "png", png);
            BufferedImage fromFile = ImageIO.read(png);
            System.out.println("fromFile's colormodel = " + image.getColorModel().getClass());
            JPanel cp = new JPanel(new GridLayout(0,1));
            addTo(cp, image, "original image");
            addTo(cp, rescaled, "rescaled image");
            addTo(cp, fromFile, "png file image");
            JFrame f = new JFrame("Example");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setContentPane(cp);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
            Will rescale and convert colormodel if necessary.
            ColorModel == null => don't convert. May return src if suitable.
        public static BufferedImage scaleAndConvertColorModel(BufferedImage src, double scale, ColorModel cm) {
            int w0 = src.getWidth();
            int h0 = src.getHeight();
            int w = (int) (w0 * scale);
            int h = (int) (h0 * scale);
            ColorModel cm0 = src.getColorModel();
            if (cm == null)
                cm = cm0;
            if (w==w0 && h==h0 && cm.equals(cm0))
                return src;
            BufferedImage tgt = createImage(w, h, cm);
            Graphics2D g = tgt.createGraphics();
            if (scale < 1) {
                Image temp = src.getScaledInstance(w, h, Image.SCALE_AREA_AVERAGING);
                g.drawImage(temp, null, null);
            } else {
                hintForBestQuality(g);
                g.drawRenderedImage(src, AffineTransform.getScaleInstance(scale, scale));
            g.dispose();
            return tgt;
        public static BufferedImage createImage(int w, int h, ColorModel cm) {
            if (w <= 0 || h <= 0)
                throw new IllegalArgumentException("...");
            boolean alphaPremultiplied = cm.isAlphaPremultiplied();
            WritableRaster raster = cm.createCompatibleWritableRaster(w, h);
            return new BufferedImage(cm, raster, alphaPremultiplied, null);
        public static Graphics2D hintForBestQuality(Graphics2D g) {
            g.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
            g.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
            return g;
        static void addTo(Container c, BufferedImage image, String title) {
            JLabel label = new JLabel(new ImageIcon(image));
            label.setBorder(BorderFactory.createTitledBorder(title));
            c.add(label);
    }

  • When converted to RGB, image looks darker??

    in photoshop CS4, I use Adobe RGB (1998) as my working profile. I open a document, I change it's profile from RGB, using "view"-"mode", to anything else, say Lab, and everything is fine up to now, but then I undo the change, and what I get is a darker image than before. I don't get the original image I opened. Same thing happens if I use the "convert to profile" option also.
    I close the image and reopen it, it still looks darker. I restart photoshop and open the image, only then I get the original image with normal colors again. This happens only when I convert back to RGB, not from RGB and not between any other profiles.
    So basically when I, at some point, change the color profile from RGB to any other profile and then back to RGB the image looks darker, and the only way to fix this is restarting photoshop. this didn't happen in any versions before cs4, what should I do? thanks.

    thanks very much for your response. Actually I had the latest drivers and photoshop 11.0.1, then I downgraded my drivers and this solved the issue.
    for everyone else using ati graphics cards, I had this issue with version 9.2 and 9.3, however, 8.1 solves this issue.
    thanks very much.

  • How do I convert all RGB images to CMYK for PACKAGING - InDesign CC?

    I understand that they can be exported as a CMYK pdf - but I'm splitting a project with another designer and she needs to get me all of her files - many of which are RGB - need them CMYK.  Thanks!

    You can't convert the color mode of links during packaging -- and you don't need to, most likely. Why do you think you must have CMYK? Unless you know the correct output space now, and have no plans to re-purpose the file in the future (and even if those things are true and you don't need to make post conversion adjustments to the color) there is no advantage, and plenty of disadvantage, to converting to CMYK before export.

  • How to batch convert RGB images to CMYK

    Hello,
    Can anyone explain in a step-by-step way how to batch-convert many RGB images to CMYK?
    Thanks in advance

    If you do want to use Photoshop for the bact conversion there are a few ways, including Batch and Image Procesor under the File>Automate or File>Scripts of PS.
    However, my preference is to use Russell Brown's script: Image Processsor Pro, via Bridge:
    http://www.russellbrown.com/scripts.html
    As similar one is Picture Processor:
    http://www.scriptsrus.talktalk.net/
    Both allow you to do multiple conversions simultaneously, to different sizes and file types, and running actions before or after the conversions.

  • Converting a document containing RGB images to CMYK (with a profile)

    Hi,
    I am trying to use PDDocColorConvertPage to convert all RGB images in a PDF document to CMYK (with a color profile).
    I can see the API is performing some changes to the PDF however it is not performing the conversion in the same way as Photoshop or Acrobat.
    Has anyone tried to do this before? Am I doing it the correct way?
    Thanks
    Please see additional details below:
    Input image:
    Converted pdf: http://www.fallenempires.net/misc/out.pdf
    Path = ASFileSysCreatePathFromCString (NULL, CMYK_PROFILE);
        err = ASFileSysOpenFile (NULL, Path, ASFILE_READ, &Profile);
        if (err)
            fprintf (stderr, "Unable to open the CMYK profile, \"%s\".\n", CMYK_PROFILE);
            exit (-1);
        ASFileSysReleasePath (NULL, Path);
        ProfileSize = ASFileGetEOF (Profile);
        ProfileBuffer = (ASUns8 *)ASmalloc (ProfileSize);
        ASFileRead (Profile, (char *)ProfileBuffer, ProfileSize);
        ASFileClose (Profile);
        ACMakeBufferProfile (&CMYKProfile, ProfileBuffer, ProfileSize);
        ASfree (ProfileBuffer);
    colorConvertAction[0].mMatchAttributesAny = -1;//kColorConvObj_AnyObject;
        colorConvertAction[0].mMatchSpaceTypeAny = -1;//kColorConvAnySpace;
        colorConvertAction[0].mMatchIntent= AC_UseProfileIntent;
        colorConvertAction[0].mConvertIntent = AC_UseProfileIntent;
        colorConvertAction[0].mConvertProfile=CMYKProfile;;
        colorConvertAction[0].mEmbed = true;
        colorConvertAction[0].mPreserveBlack = true;
        colorConvertAction[0].mUseBlackPointCompensation= true;
        colorConvertAction[0].mAction = kColorConvConvert;
        colorConvertAction[0].mIsProcessColor = false;
        colorParams->mActions = colorConvertAction;
        colorParams->mNumActions = 1;
        colorParams->mInks = NULL;
        colorParams->mNumInks = 0;
        pageChanged = false;
        PDDocColorConvertPage( pdDoc , colorParams , 0 , NULL , NULL , 0 , NULL , &pageChanged );

    In that case am I using incorrect parameters in the code snippet? The code below does not convert the RGB->CMYK properly.
        inPath = ASFileSysCreatePathFromDIPath( NULL, argv[1] , NULL );
        pdDoc = PDDocOpen( inPath , ASGetDefaultFileSys() , NULL , false );
        ASFileSysReleasePath( NULL , inPath );
        PDColorConvertParams colorParams = (PDColorConvertParams) calloc( 1 , sizeof(PDColorConvertParamsRec) );
        PDColorConvertAction colorConvertAction = (PDColorConvertAction) calloc( 1 , sizeof( PDColorConvertActionRec ) );
        ASBool pageChanged = false;
        AC_Profile  workingProfile;
        ACGetWorkingSpaceProfile  (kACWorkingCMYK, &workingProfile);
        //Populate the PDColorConvertAction data members
        colorConvertAction[0].mMatchAttributesAny = -1;//kColorConvObj_AnyObject;
        colorConvertAction[0].mMatchSpaceTypeAny = -1;//kColorConvAnySpace;
        colorConvertAction[0].mMatchIntent= AC_UseProfileIntent;
        colorConvertAction[0].mConvertIntent = AC_UseProfileIntent;
        colorConvertAction[0].mConvertProfile= workingProfile;
        colorConvertAction[0].mEmbed = true;
        colorConvertAction[0].mPreserveBlack = true;
        colorConvertAction[0].mUseBlackPointCompensation= true;
        colorConvertAction[0].mAction = kColorConvConvert;
        colorConvertAction[0].mIsProcessColor = false;
        colorParams->mActions = colorConvertAction;
        colorParams->mNumActions = 1;
        colorParams->mInks = NULL;
        colorParams->mNumInks = 0;
        pageChanged = false;
        PDDocColorConvertPage( pdDoc , colorParams , 0 , NULL , NULL , 0 , NULL , &pageChanged );
        printf( "page changed to CMYK\n" );
        /* save document to a file */
        outPath = ASFileSysCreatePathFromDIPath( NULL, argv[2] , NULL );
        PDDocSave(pdDoc, PDSaveFull | PDSaveLinearized, outPath, ASGetDefaultFileSys(), NULL, NULL);
        printf( "File saved\n" );

  • Help converting RGB Images to CMYK?

    I am working with a CMYK Freehand design, and it includes a
    cut out image on top layer. The image is in RGB. When I export it,
    I am getting a colour shift on the transparent areas.
    Should I be working with a CMYK cut out image? If so, how do
    I convert my RGB image to CMYK, keeping the transparent areas of
    the cut out?
    Help much appreciated (ASAP)
    Regards
    Geoff

    GmR wrote:
    > I am working with a CMYK Freehand design, and it
    includes a cut out image on
    > top layer. The image is in RGB. When I export it, I am
    getting a colour shift
    > on the transparent areas.
    >
    > Should I be working with a CMYK cut out image? If so,
    how do I convert my RGB
    > image to CMYK, keeping the transparent areas of the cut
    out?
    >
    > Help much appreciated (ASAP)
    > Regards
    How are you creating the transparent areas? Are you using an
    alpha
    channel in the bitmap? I stopped doing that when I noticed
    color
    shifting (even in grayscale reproduction) similar to what you
    get when
    using the raster effects. But I do miss using it because it
    is
    convenient and sets up nicely.

  • How to create a 16-bit grayscale image from matrix of values

    Hello all,
    I'm having a problem converting a series of measurements into a specific image. I have a matrix of nxm dimensions (n and m variable), which contains measurement data. My intention is to transform this matrix into an image to be analyzed later on by an external software. The trick, however, is that the image has to be in 16-bit grayscale format: in grayscale for doing the image processing, and 16 bits to make sure that resolution is not hindered.
    I've been looking around the web and still haven't found a way of somehow mapping the measurement values I have in that matrix into pixels (16-bit grayscale ones, that is). I have access to the Full Development System version of LabView, but not other toolboxes.
    Does anyone have any suggestions?
    Solved!
    Go to Solution.

    Hi everyone,
    I've managed to get it to work thanks to some help from people on other forums. The key is to use the IMAQ driver, which gives the VIs necessary to create images on 16-bit grayscale (only supported nicely by PNG format apparently).
    The discussion on the other forum can be found here: http://stackoverflow.com/questions/11101420/structure-of-16-bit-grayscale-image-to-be-generated-in-c...
    The IMAQ driver can be found here: http://search.ni.com/nisearch/app/main/p/bot/no/ap/tech/lang/en/pg/1/sn/catnav%3adu,n13%3ahardwareDr...

  • Making 16 bit grayscale - a image in a color scale

    Hi,
    I want to show a 16bit grayscale image in a scale of a certain color (that means that instead of scale of between black to white i scale of black to a color eg. red)
    I have some image in 16 bit grayscale format, i need to add them together each by a diffrent color scale, to make one image.
    (I am taking images in a grayscale from camera that is connected to a microsope, and each image is taken with a diffrent color filter and i need to accumulate then to make one image).
    thx in advanced!

    hmmm, no, because you need reform the data from an array of three separate images into one image which each pixel reprsents the three image's pixels in color.
    ill try to add the files so you'll see it.
    do you have another idea for doing it more easly?
    Attachments:
    adding three grayscales images to one image in diffrent colors.vi ‏75 KB

  • Converting RGB images (sRGB or Adobe RGB) to 709 color space.

    I'm trying to determine the correct way to convert RGB images (sRGB or Adobe RGB) to 709 color space.  I can't just use the "covert to profile" function to do this because it does not produce results that fall within the 16 to 235 range that 709 dictates.  I've read that you can simply use the "Levels" adjustment and change the output levels to 16 to 235.  While this would clearly compress the luminance to the correct range, I'm not entirely clear if the end result would be a proper conversion (i.e. if color and gamma, for example, would be technically correct.)
    I noticed that converting the profile to "HDTV (Rec. 709)" does alter the image, so I'm wondering what the result would be if I did both this AND used the levels control to compress the output range to 16 to 235.
    Thanks for any feedback on this.

    (1)
    http://en.wikipedia.org/wiki/Rec._709
    (2)
    http://en.wikipedia.org/wiki/Rec._601
    The transfer functions for Rec.709 (1) refer to the range [0..1] or for 8 bits per pixel [0...255].
    It seems that the clipping, black=16 and white=235 has to happen after the application of the
    transfer function. If this should be true, then we don't have a level compression but a level
    clipping at both ends, as already for Rec.601 (2), like here:
    The ICC-Profile HDTV(Rec.709) in Photoshop contains the primaries and the white point
    (both like that in sRGB) and the transfer functions for [0..1], coded by a LUT with high resolution,
    as found by Profile Inspector. There is no clipping.
    By the way, that`s the internal profile name, I don't know the file name of the profile.
    Softproofing, source in sRGB, target HDTV(Rec.709), without clipping:
    With numbers not preserved: no change of the appearance, as expected.
    With numbers preserved: shows the effect of different effective gammas. 
    Your questions are very clear and I'm not sure whether my comments help. The information
    in the internet is not convincing.
    Best regards --Gernot Hoffmann

  • Can't Save a Big TIFF 16 bit RGB Image to JPEG

    Hi all,
    I'm using Photoshop CS5 Extended on Windows 7 64 bit (Home Premium).
    I've stitched a panorama in Photoshop using merge from 19 RAW files (Canon 5D mkII) in 16 bit. All was fine, I saved the merged image as TIFF 16 and worked on it. Resolution of the panoramic image is around 33000x4900. File flattened and no active selections left.
    Once I was happy I ran Image Processor on it with an action to watermark and add EXIF copyright data. This failed saying that it could not save to JPEG (it performed the action correctly, just stopped at saving it). This normally works fine with other TIFF 16 RGB images I have done.
    I tried to save it manually, but at that point I noticed that the "save for web" option was grayed out and that the "Save As" dialog did not display JPEG in the options.
    What I did:
    1.) tried to open it with ACR and save it as JPEG. This has worked fine
    2.) tried to resize it to 20000x3600 (more or less) and it worked fine (meaning the option to save it as JPEG where back there)
    3.) tried to convert it full-size to 8 bit and that did not work
    I'm not too bothered because I have the ACR workaround, but it is annoying and in the past I've done bigger panoramas with CS4 and I've never encountered this problem before now.
    Any ideas?
    The image is almost 1 GB so I'm not going to post it...
    Thanks for your help!

    My inital thoguht was: there must be some size limit on the JPEG format that this person is hitting.
    So a quick Google search later (quicker than posting a thread!) and I found this: http://kb2.adobe.com/cps/325/325073.html Although it's focussed on CS2/3 it seems that the limit of 30,000 pixels vertical or horizontal has remained in place for CS5.
    M

  • Quicktime converting 24 bit images to 16 bit images on paste

    I am doing image processing of a QuickTime (7.1.5 pro) movie in Photoshop (CS2) using Applescript. When I copy an image (either with Applescript or manually) and paste it into a new QuickTime Player movie the image gets converted to a video depth of 16 (thousands) rather than 24. I have tried:
    set DestMovie to make new movie with properties {data rate:SourceRate, video depth:24, high quality:true} -- I also tried video depth:0
    paste
    I also try:
    tell movie 1
    paste given video depth:24 -- I've also tried just paste
    end tell
    and still it converts my images to thousands. The image gets to photoshop perfectly. If I paste it into a Pages document the image depth is correct. I have tried both RGB and CMYK in 8 and 16 bit depths in Photoshop. If I save the file as JPEG in high quality mode and then open the file with Quicktime and copy and paste it, it works great, the only problem is I then have to make a new file for every image I process because if I close the file, QuickTime keeps it open so Photoshop can't then save to the same file.....
    Will someone please help me figure out how to keep my image quality on pasting into Quicktime???
    Thanks
    Powerbook G4   Mac OS X (10.4.9)  

    I open my original movie in Quicktime. I make a new movie in Quicktime for the modified images to be pasted into.
    I copy the current frame from my source movie and paste it into Photoshop. I do my image processing and then save as a jpeg high quality and close my file (which strips out the audio from a muxed mpeg-1 file) then reopen the file in Photoshop. Now I have a good quality image in Photoshop. I have been using RGB 8 bit as my mode in Photoshop. I only tried CMYK to see if it would work better. It was exactly the same.
    I then do a select all and copy in Photoshop, then go to Quicktime and do a paste. This is when it gets converted to 16 bit depth. If I do the same exact sequence and paste into a Pages document the image stays 24 bit, so I am pretty sure it is something in Quicktime.
    Again, if I save the file in Photoshop and then open the same file in Quicktime, copy the image and then paste it into my destination movie, it works great. The only problem with this method is I have 15 minutes of video to process with is 27,000 jpeg files in the end. I prefer to use one file if I can. The reason for the 27,000 files is that when I open an image in Quicktime and paste it into a movie, it saves it as a track in the movie and even when I close the original file, Quicktime keeps it as in use. When I look at the movie properties, it keeps the original file in the list until I do a save as movie and it flattens the movie. If I flatten the movie once, then when I do another save, it keeps the original file open again. I would have to do a save as movie... again 27,000 movie files now. Geez...
    Thanks!

Maybe you are looking for