color to grayscale image

can someone help me please.

I am stuck on this problem.

I have this program that would analyze and draw the overlay 'crosshair '.

but I'm getting errror when working with color images.

IMAQ game geometric pattern 2
Invalid image type.

I get an error "invalid model" when I tried your model. I have created a new. Try if it works.

Tags: NI Hardware

Similar Questions

  • How to make the color from grayscale images?

    I have some pictures in grayscale. How can I make to any color I want? Thank you

    You can use the Smart Brush, one with gears tool, select color from the drop-down and paint.

    You can make selections of various objects, place a layer of setting hue/saturation above each selection, clip the adjustment layer to the selection and the layer H/S box tick redefine. Adjust the sliders accordingly.

    If you want more targeted guidelines, publish a file representing here for us watch.

  • Color adjustment and the overlay to a placed image (this is a grayscale image)

    So I will try to set the color of an image I placed a color point, then set it to overprint the fill.

    I created a rectangle and adds these attributes. But I can't seam to get the same thing to work for a picture (gray scale).

    Here are some of my code:

    
    
    
    
    #target illustrator-19
    
    
    var doc = app.activeDocument;
    var sel = doc.selection;
    
    
    var aiDocWidth = doc.width;
    var iPath = sel[0].file.path + "/";//Name;
    var origImage = sel[0].file;
    var origImageFile = File(origImage);
    
    
      if(origImageFile.copy(decodeURI (iPath) + "/W_" + origImageFile.name)){
                    //iFile[0].remove();
                    };
    var wImageFile = File(iPath+ "/W_" + origImageFile.name);
    
    
    var psScript  = 'app.displayDialogs = DialogModes.NO;'; 
            psScript += 'app.open(' + wImageFile.toSource() + ');';
            psScript += 'app.activeDocument.changeMode(ChangeMode.GRAYSCALE);';  
            psScript += 'app.activeDocument.activeLayer.invert();';
            psScript += 'app.activeDocument.close( SaveOptions.SAVECHANGES );';  
            psScript += 'app.displayDialogs = DialogModes.ALL;'; 
            
    btMessaging('photoshop',psScript);
    
    
    placeImage(wImageFile,origImage,sel[0]);
            
    
    
    function btMessaging( targetApp, script ) {  
              var bt = new BridgeTalk();  
              bt.target = targetApp;  
              bt.body = script;  
              bt.onResult = function( inBT ) { alert( 'Done…' ) };  
              bt.onError = function( inBT ) { alert( 'OOPS! something went wrong! :(' ) };  
              bt.send( 20 );  
    }; 
    
    
    function placeImage(fName,origImage,sel){
        
                var aDoc = app.activeDocument;
                
                var aLayer = aDoc.activeLayer;
                
                        //Flood white Color
                    var floodWhiteCMYK = new CMYKColor;
                    floodWhiteCMYK.magenta = 100;
      
                        //White Color object
                    var floodWhiteSPOT = aDoc.spots.add();
                    floodWhiteSPOT.name = "WhiteSpot";
                    floodWhiteSPOT.color = floodWhiteCMYK;
                    floodWhiteSPOT.colorType = ColorModel.SPOT;
                        //create instance of this object
                    var floodWhiteColorSPOT = new SpotColor();
                    floodWhiteColorSPOT.spot = floodWhiteSPOT;
                
               var pImage = aLayer.placedItems.add (origImage.top,origImage.left);
                pImage.file = fName; 
                pImage.name = "WhiteImage";
                pImage.selected = true;
                pImage.fillColor = floodWhiteColorSPOT;
                pImage.fillOverprint = true;
           
                var origI = sel;
                var x = origI.position[0] + (origI.width / 2);
                var y = origI.position[1] - (origI.height / 2);
                
                // move image 
                pImage.position = [x - (pImage.width / 2),y + (pImage.height / 2)];
           };
    

    PlacedItems don't colorize of property or methods, overprint property too.

    However, we can define the color by Colorize method together with overprint property after converted to the use of embedded rasterItems method.

    Here is a small code example:

    var clr= new CMYKColor;
    clr.cyan = 50;
    clr.magenta = 50;
    clr.yellow = 0;
    clr.black = 0;
    
    app.selection[0].embed(); //selection[0] must be placedItem
    app.selection[0].rasterItems[0].overprint = true;
    app.selection[0].rasterItems[0].colorize(clr);
    
  • Unique spot color grayscale image conversion

    Hello.

    I'm trying to convert a grayscale image in a single spot color image. The spot color is PMS425C, color gray, but as I'm only printing 2 colours I need to convert these images in one spot color.

    Can someone please help?

    Thank you

    Have you seen the monotonous separated to CMYK?  If so, you can not make the PDF correctly and the place is being converted. It can still have CMYK channels, but they are empty and will not end plates.  Check your output to PDF settings and check the ink Manager that the tasks are retained.  In addition, there are more than one way to display preview of the output that can be confusing at first.

    You export as PDF X / 1a and if your settings are correct, when you view in output preview (separations) in Acrobat, you should see the spot as a task.

    Try to save your monotonous as .psd too many other formats will support the monotonous.  If you view separations in ID, you will be able to see if your file supported by spot color.

  • I have a MP495 all-in-one. I can't choose black & white scanning. Only color or grayscale.

    This problem is specific to Windows Fax and Scan.

    When you scan a document, the only options I give myself is to color or grayscale.

    None capture a clear image of the document as clean B & W.  I am of course I scan B & W document.

    Running windows 7 Home Premium on a computer Acer Aspire V3 - 551.

    I know it must be something in my original installation configuration, but I don't know what.

    Hi DPChristman,

    To scan black and white, please use Scangear Advanced Mode.

    To do this, please follow these steps:

    1. click on start, select (all) programs, Canon Utilities, MP Navigator EX, then MP Navigator EX to open this program.

    2. tap on Scan/import, and then click the pictures/Documents (Platinum).

    3 place the document on the set, and then select the Type of Document.

    4. check in "the use of the scanner driver".

    5. click on the button Driver Scanner Open.

    6. click the Advanced Mode button.

    7. in the input parameters section, change the color to black and white Mode.

    8. click on the green button.

  • Why Photoshop doesn't load Raw files as a grayscale image?

    PS version CC2015.5 / Windows 7

    When loading an image directly from my hard disk, it loads a grayscale image. When Adobe Bridge opens first thumbnail images are displayed in a RGB color but sequentially begin displaying in grayscale. However, when the power of images in PS to help change in the images open as RGB color. Anyone know why this is happening and how to fix it. I must be the only one to go through this because I found nothing in any forum. Thank you... Peter

    The tab of HSL/levels of gray in Camera Raw, "Convert to grayscale" is checked on?

  • grayscale images appear yellow

    Whenever I have display an image to grayscale in Photoshop CC, it has a yellowish tint to it.

    I can't just get rid of this annoying yellowish tint!

    Opening of the same image in a web browser, it seems OK. No yellow tint at all.

    Does anyone have a solution to this?

    If I click on the colors of View\Proof, the yellow tint disappears in the grayscale image.

    As I said in my previous post, color proof is not a solution to the problem.

    I find it curious that the RGB image is neutral, but I would have thought that the monitor profile is the problem, a grayscale image must be gray neutral.

    It is not clear if you attempted to set the monitor to sRGB profile. Here is a more detailed explanation.

    If this solves the problem, it confirms that the monitor profile is faulty and you will need to calibrate ideally with a material standard.

    If it does not solve the problem, please post a screenshot of the color settings dialog box in Photoshop. (Edition > color settings)

    Close Photoshop.

    Press the Windows key + R to open the Run dialog box, enter colorcpl in the text field and press ENTER.

    In the color management dialog box, click Add, and then choose sRGB IEC61966 - 2.1 and click OK.

    Now select the sRGB profile and click on set as default profile.

  • How to paint accurate grayscale between 0-254 in an alpha or a grayscale image? Seems impossible... Work at 5.5... not in CC. Bug?

    So, here's the thing. I have to be able to assign precise shades of gray in an alpha channel, that our code takes the value (between 0-244) and uses it to do its thing. I assumed it would be easy... Simply choose your color and paint... but not so much.

    In an alpha channel, or even in a grayscale image, make a selection and fill it with RGB 6,6,6.  Since it does not seem to be a way to get a range of gray tones or the entry for Alpha value is th eonly way I can see of the to do.

    Now, use the Info Panel, check that it is indeed RGB 6,6,6.  This is the case.

    Now make another choice and fill it with RGB 7,7,7.  Check this box with the info panel and... its 6,6,6.

    OK so now use or brightness levels to try to change this until 7,7,7 6,6,6... check with the eyedropper color sampling tool.

    What awaits you is what the RGB value of 6,6,6... 8,8,8 at the 10.10.10, it is impossible to make 7,7,7 or 9,9,9. Theres a bunch of other values that are also impossible.

    If you do the above in one of the RGB channels if it will work fine... It's just the Alpha and a grayscale image.

    On the same vein, on a normal layer, fill an area with you RGB 7,7,7, copy it and paste it into your alpha.  Sounds great... until you use levels to increase the contrast and you find that what has been 7,7,7 is now a mixture of noise filled, I suppose, 6,6,6 and 8,8,8.

    (NB. as a note that the foregoing also happened in CS5 but in an old version of Photoshop 5.5, it works perfectly...) I can give the 7,7,7 RGB and the value that is painted is 7,7,7. Put in CC and its fine. If it's just the creation of tones in DC that does not.

    In addition, it works fine if you change the individual RGB layers... you can get 6,6,6 AND 7,7,7... but as soon as you copy and paste it into the alpha. .the 7,7,7 found 6,6,6)

    Then

    1st QUARTER... What am I doing wrong?

    Q2... If alpha 8-bit and grayscale images can take on values ranging from 0-254... So how to set the value I want actually?  I can't use the value of K, because it's only a percentage is less than levels and is not a separate entry for the alpha value.

    Q3... or more simply... How to set the value of gray for a number in particular, for example. 7

    Thank you.

    Pat

    Post edited by: Patrick Ward

    Ok. so with the very patient help of Chris Cox, I understand vaguly what is happening and why.

    I presume its because PS is set up for printing, but the problem is caused by the inadequacy of the RGB and gray profiles workspace in the color settings.

    The default value is

    RGB: sRGB IEC61966 - 2.1

    CMYK: U.S. Web Coated (SWOP) V2

    Gray: Dot Gain 20%

    Spot: Dot Gain 20%

    This gray value is not the same gamma as sRGB IEC61966 - 2.1 which is put in place only 2.20. Because conversion occurs when EACH color space conversion, painting in greyscale alpha channel with and the brush color RGB is forced to change the RGB 7,7,7 to a gamma of 2.2 to grayscale to... is worth what ever gamma dot gain20%. What result sin two different values.

    SO the solution is to change the gray value to the same as the value of gamma RGB...

    Gray: Gray Gamma 2.2


    So, it works!

  • How can I export to PDF for printing Offset, including colors and grayscale of the photo?

    After reading dozens of forum, I not yet found the answer.

    I made a photo album with full-colur and b & w photos for Offset print. I want to be for the b & w grayscale avoid the hues of colors possible. It seems that InDesign does not support the shades of gray, how images become dark. Even with export without any conversion of color or the destination and/or including profiles of original colors, the images are exported to obscurity as a PDF to grayscale.


    How can I export to PDF for printing Offset, including colors and grayscale of the photo?

    Yes, Photoshop & ID CMYK working spaces are the same

    This can become difficult because 3 programs manage proofing differently.

    Work spaces don't matter, document profiles that handle the preview. So here's the same image in grayscale, placed in the ID on the top and PS on the bottom. I put my info in Photoshop to display the profile of doc in the lower left corner. I can see the profile of my InDesign CMYK Document in my test format (CMYK work is different and is not used). The two profiles are actually the same coated FOGRA39 (Black Ink FOGRA in the case of the PS).

    But the previews do not match because I disabled, so the preview InDesign is Gamma 2.2 or a "screen" media preview overprinting.

    If I turn on overprint preview, I get a match because I'm soft proofing for printing:

  • Can not change the color of the image of pix 4 x 9

    I worked on this all day, it's my 3rd day ever using Photoshop.  I have the books of class, been Googling this, does everything in the books/videos/online help and I cannot get this picture to change.  I have already made a few images and even managed to use the gradient tool, so I know that I'm not retarded.

    The image is a gray arrow, 4 pix by 9 pix, there on this website (equitherapies.com/blog/), on the blog page, you can see a few small grey arrows.

    4 hours invested in an arrow thin color change is not good.  I have the arrow enlarged in photoshop, but I can't get the color to change.

    Why isn't the color replace option work?  I managed to do it working earlier today on the other stuff, but not this stupid arrow, am I not getting something?

    Thank you, once again, I have looked "photoshop for Dummies", but found no one, any help I found said the same thing that did not work.

    Jodi

    Exactly how do you try to change the color?

    What is a grayscale image?

    The layer is locked?

  • The color in printed images is not match the colors on the screen

    I've recently updated to an iMac, retina 5K and the colors in the printed images do not match the colors of the image on the screen. I use CS6 and the screenshot below shows that, in the window of the print settings CS6 image does not match the image of origin either, the original image on the left.  I've updated all print drivers, and the images are also too green/faded when I print them, or download them on Animoto or Mpixpro.  We tried a Spyder calibration system, and that did not help.  For now, I have to make a folder separate with "twisted" images that have increased the saturation and Communists to give them a normal appearance.  Does anyone else have this problem?

    Unless you have a current color profile for the display you are using and you have calibrated the printer for the specific of ink and paper that you are using, its not surprising there are differences. Without a color managed workflow screen and software have no information on what the printer can produce.

    The range Spyder products are not up to the task.

    The normal options for managing your color workflow are:

    1. using the X-Rite i1 photo system,

    2. purchase of a custom profile for your type of printer, paper and ink, done by a specialist in color management

    3 - Send your files to a professional lab that is capable of producing quality work.

  • How to convert U32 matrix 8-bit grayscale image?

    Good day to all,

    I got a U32 512 * 512 data table of photomultiplier using the analog inputs of the DAQ card. My question is how to convert this matrix 32-bit to 8-bit monochrome image for display.

    I tried the method in this post to convert grayscale image https://decibel.ni.com/content/docs/DOC-4155 table but the result resembles an outline rather than the actual image. I guess that's because their contribution to flatten Pixmap is 8 bits, but mine is 32-bit. I have a gamma correction to the scale of my data? But how?

    I have attached the original image, which is a particle. I have also attached my labview code and the processed image.  Thank you!

    Then, you will likely make you own custom conversion then increasing the difference between the brightest and darkest. You could just do 4294963840 the zero and 4293967276 the max and scale up to 0-255

  • Why overlays take much longer on grayscale images single precision

    Hello

    I came across a rather curious problem. In a Visual inspection machine, we create 8-bit 16MPixel images. These are then calculated in single precision images. After processing the image display us certain types of images of result to the user. Here, the user can use the mouse on the image display and gets a reading of the current image of the sector where the mouse is currently positioned. If the image is RGB or U8, fine.

    However, if the display holds one of the 32-bit grayscale images things become quite slow, by a factor of 5 to 10 about. Now I can see that 32-bit is quite a bit more than 8 bits, so I guess an increase in lap by a maximum factor of 4 times.

    Since the images are large enough, an update takes about 90-100 ms with the 32-bit image, while the same action requires little more than 10 to 20 ms with U8 and same RGB. Because the movement of the mouse is caught by a structure of the event, all movements are processed and finally the tail to cause a blockage of the software that all these events are processed. This leads to ridiculously long 'freeze' time in the software, sometimes as long as 20 sec, as I saw through a log of the events has been implemented for this purpose.

    Attached is an example of code that shows the unusually long processing time for overlays on SGL-images. If there is any suggestion, I would be happy to read them. Thanks in advance.

    Falk

    After in-depth discussions with German support NOR we have understood that it is not primarily the recovery action that consumes time, but rather my screen image update after each action of the event. As my goal was to provide the user with the most recent image information available as close to the position of the mouse as possible there is no another way to do it without compromising the goal that I have explained.

    Several alternative ideas, we had (some don't work well) are briefly explained below:

    1. Use the property of the band of the art instead of creating an overlay

      • PRO: ultra fast response because no update of the display image is needed, easy to implement
      • Cons: Stationary, takes advanced band rest a while to appear, requires the user to stay in the same place on the screen for a while, the band faded unpredictable (in my test) and reappears only after leaving and returning to the display picture more keep the mouse pointer for a few seconds
    2. Use an extra (classic style) indicator string to display the desired text in the desired position
      • PRO: also very fast
      • CON: kind of hassle to the code, because it implies the correct calculation of the desired position of the channel indicator using the position of the window of the façade, the image appears indicator and the position of the mouse. Actually not hard I know, but nothing that see you with your mind on your dinner... You'll need a bunch of different reference types here to acquire the position necessary to window VI, indicator to display Image and mouse properties
    3. As 2 but without moving the indicator
      • PRO: fast and easy to implement
      • CON: not as easy to use since the indicator is stationary somewhere around the display of images and not at the mouse position.
    4. copy/typecast image SGL U8 image and move forward with overlays
      • PRO: the response is improved to the level that I used
      • CON: 'problem' with the update of the display image remains and therefore increases the response time the picture gets
    5. Use the property of the information string Image instead of creating an overlay
      • PRO: would be faster than 1., since no required update picture
      • k.o. - CON: property seems to be Read-Only, so no changes defined by the user of the text is possible

    I guess my choice will be 2.

    If anyone has other ideas on this subject, I will be always happy to hear about them.

  • How to change my default printer from color to grayscale permanently.

    How can I change my default printer of color in grayscale on a permanent basis.  Because for the most part, I print in black and white, I want this as the default value and then can change manually, if necessary, when I want to print in color.  Thank you

    Go to the ORB start and select devices and printers. Right-click on your printer, and then select Printing Options. Here, you should be able to select under gray color and save it...

  • Hello. I have the DVD of Lightroom 5.7.1 version. He just started is behaving badly and I've deleted and reinstalled the product. When I'm in the 'development' module, I get random stains of color in my images. This only happens in the develop module and

    Hello. I have the DVD of Lightroom 5.7.1 version. He just started is behaving badly and I've deleted and reinstalled the product. When I'm in the 'development' module, I get random stains of color in my images. This only occurs in the develop module and no where else. It also does not reach any other software or area on my pc. I also changed the cable and the same triesd another monitor. Anyone have any ideas? Thank you.

    Are patches of red and blue color?

    If so, you probably have warnings of cutting of light/shadow enabled. Press J to hide them.

    You can also activate their power by clicking on the arrows up left and right of the histogram.

    Salient facts cut medium red, medium blue clipped shadows.

Maybe you are looking for