Saving intensity image without border
I am trying to save an intensity graph to an image file, so what I've done is used the "Invoke Node" -> "Get Image" to capture the control display. The image is then wired into "Write BMP File" to save the image. The problem is that the indicator's border still shows up. After I hid the X, Y, Z, label, etc from the intensity graph, it still does not capture the graph data by itself. The border shows up, so when I made the indicator transparent, the background of the vi shows up. Is there a way to get JUST the image out of the intensity graph?
My prior solution was to use the "Flatten Pixmap" function to save the image, but the color scale settings weren't preserved so my intensity images were very dark. Maybe an alternative solution is to find a way to preserve the color table scale when saving? Is there an easy way to do this?
Hi AntLee29,
I am not quite sure of what you would like to extract from the intensity graph. Could you please post some screen shots of what you would like to see and what you would like to not see, I think that these would help me to better understand the question. Thank you and have a great day!
Best regards,
Steven
Similar Messages
-
Saving a image without a background
I did the tutorial on Removing Image Backgrounds with
Fireworks. That works great, but I don't know how to save a image
without a background. I am trying to save it for a website. I have
Fireworks 8.0. I tried to save it as a Alpha Transparency GIF file
, but the image is poor. I don't know the correct way of saving
this.
Any help would be greatly appreciated.
TonyOn Tue, 16 May 2006 20:48:12 +0400, Tony024
<[email protected]>
wrote:
> Ilya Razmanov,
>
> I did have that problem viewing under IE 6 on one of my
pc. My other
> pc is
> running IE 7 and it is fine. I am trying to save the
image without any
> bacakground so I can upload it to dreamweaver 8.0 so
that it can be
> viewed in
> any IE. I am trying to use a GIF or a JPEG file.
Official JPEG specs does not allow any transparency at all,
so save your
time and quit trying it. GIF only support limited colors (up
to 256), one
of that can be assigned as "transparent". So when FW exports
GIF from a
source file that have any partial transparency, it "premixes"
any partial
transparent color of source with "matte" color. In case the
latter
correspond to average color of your page background, and your
page
background is not too wild and colorful, and you are not
using too wide
partially transparent stuff, it normally work well.
Among the image formats common on the Web, only PNG provides
true partial
transparency. Alas, IE still does not correctly understand
that part of
PNG specs that was set years ago. So if you definitely
positevely can't
live without transparency things that are available in GIFs,
PNG plus
specific CSS and\or Javascript trics is the only way to go.
However, I'd
personally make sure I can't live with old limited GIFs
before going that
way.
Ilya Razmanov
http://photoshop.msk.ru -
Photoshop plug-in filters -
How to see all image types when saving an image without selecting "all files"every time
<blockquote>Locking duplicate thread.<br>
Please continue here: [[/questions/951766]]</blockquote>
Hallo, and thank you for reading this.
I am a person who saves a lot of images online and renames them in different folders in different names like B - 34 or G - 56. I have been working with firefox 10 for quite some time and it had a pretty handy bug (I guess) where I could save an image and firefox would just save the image in it's original type (JPEG,PNG etc) while "save as type" was empty.
It also always has shown all the image types in the folder where I save the images (except for GIF) and that helpes me quite a lot by saving me the trouble of selecting "all files" every time I save or going to the folder to rename every image.
Now this seems to be lacking in the newest firefox versions and my question is if I can set firefox to always show me all the image file types when saving an image, instead of only showing JPEG's when I try to save a JPEG.
Thank you for your time.I suspect this is a Windows problem. I am surmising the FilePicker uses the Operating System or Desktop facilities. Does Windows 7 offer any other file categories like ''images'' ?
I do not normally use Windows 7, but may the option depend upon the directory being an indexed one, I ask after finding this thread ''Bring File types tab back'' [http://www.windows7taskforce.com/view/819]
This question is a duplicate of [/questions/951764]
Normally I would lock the duplicate question, but in this instance I will leave it open as it is unanswered and someone may give a better reply. -
Saving rotated image without background
Ok I need help....I have rotated an image 20 degrees and would like to save it as a rotated image but whenever I do there is a white background around the image. Look at the image below, I rotated it 20 degrees but when I saved it, it saved with the white background. How can I save the rotated image but without the white background????
(I changed the color so you could see the background)If your working with one layer (locked background layer), double click
on the layer thumbnail in the layers panel to make it a new unlocked layer.
Then when you rotate the photo, the background should be transparent.
Also to maintain transparency, save in another format other than jpeg, such
as psd, tif, png-24.
MTSTUNER -
Saving created image without background?
Hi I have PSE 8 and am new to this, I am trying to create a small 11x11 pixel orange circle but when i created it even using the transparency option, the image still gets saved with a white square background. Is it possible to save the created circle alone WITHOUT the white square background? If so, how please?
Open the editor and change the color swatch (usually black & white) to orange.
Click on the arrows symbol so that orange becomes the background color.
Select File > New > Blank File
Set background contents to Background color and click OK
Drag your elliptical marquee tool to form a circle and press ctrl+J
You will see in the layers pallet a background layer and a transparent layer on top with your orange circle.
Click in the layers pallet on the layer marked background and hit the trash can to delete.
Resize your image to the dimensions you want.
Then on the top menu select File > Save for Web
Change from jpeg or gif to PNG-24 and check transparency.
Click OK
Choose a new file name and click OK. -
I have this image on index, however image appears with border,
I try to take a snapshot but do not show border, how can i take that out?
Message was edited by: Alexandre PereiraGo to the Inspector/Graphics pane and set the Stroke to None.
OT -
Print labview imaq image without border
I'm trying to print a labview imaq image by opening it in a new vi which is set to print on opening.
This works fine but, the size of the image can vary and the way I do it now, if the image does not completely fill the image frame, a grid is displayed in the area which is not filled by the image.
what it does:
|
|
|
|
|Hello Arend,
I attached a vi which you can use to read the size of the image you acquire and than scale the IMAQ Image Display according those settings. I also build a small example which shows how to use the subvi. They are both in the zip file. They are both written in LabVIEW 7.1 so if you're using an older version please tell me which and I will save it back.
Best Regards,
RikP
Application Engineering
National Instruments
Rik Prins, CLD
Applications Engineering Specialist Northern Europe, National Instruments
Please tip your answer providers with kudos.
Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
Attachments:
Autosize Image Display example.zip 27 KB -
Saving overlayed images without shift
I am trying to programmatically save overlayed images of controls: a mixture of transparent XY graph applied on a vectorized picture. Grouping those controls in the front panel, copy them and recover them from clipboard works fine. I would already have been glad to do that programmatically. Is there any way to use this group feature programmatically?
But as soon as I try to produce a picture combining both of them; I get into problems because they get shifted owing to their different origin on the front panel.
See attached small vi.
Thnaks for any simple solution.
Attachments:
test_save_superimposed_polar_diag_4_décalé.vi 70 KBSimulate a key press: Print Screen
Then read the clipboard.
George Zou
http://webspace.webring.com/people/og/gtoolbox -
How to see all image file types when saving images without selecting "all files"
Hallo, and thank you fom reading.
I am a person who saves a lot of images online in different folders with different names like G - 456 or F - 35.
I have been using firefox 10.0.2 for a long time because of a bug (I guess) that made it easier to save images.
When I saved an image it would always show me all the image files in any folder I wanted to save it, and that way making it easier for me to save files with the right names.
Now with the newer firefox (currently 19.0) whenever I try to save a JPEG I only see the JPEG files in the folder and only way to see the others is by selecting "save as type" all files, but with this I also see all the files that are not images.
This used to save me a lot of trouble and a bit of time but I dont see anything in the options menu that can help me. Is there a way to recreate this function?
Thank you for your time.I suspect this is a Windows problem. I am surmising the FilePicker uses the Operating System or Desktop facilities. Does Windows 7 offer any other file categories like ''images'' ?
I do not normally use Windows 7, but may the option depend upon the directory being an indexed one, I ask after finding this thread ''Bring File types tab back'' [http://www.windows7taskforce.com/view/819]
This question is a duplicate of [/questions/951764]
Normally I would lock the duplicate question, but in this instance I will leave it open as it is unanswered and someone may give a better reply. -
Saving image without bits loss/change
hi there,
I was trying to save an Image (which i created myself with MemoryImageSource, and proper bit manipulation where red bits hold some characters, very important)and then i saved the image to jpeg by by using BufferedImage and com.sun.image.codec pacakage...its very important that when i read back the saved image, the bits the pixels array are the same as they had been created....but i found them changing...though image looks almost similar....can anybody out there help me how can i recover the same bits in Image pixel array or save it properly using some other technique, so that when i read the image the bits are not changed???
helps would be appreciated a lot..and your name would appear in my software's about dialog..that's a deal..plz help...
kushalWhat codec were you using.
You want one that has "lossless" compression.
i.e. GIF, TIFF, TGA, BMP, etc.
JPEG has "lossy compression" although as someone mentioned you may be able to call a method to force it to be lossless. -
Help! Saving an image to stream and recreating it on client over network
Hi,
I have an application that uses JDK 1.1.8. I am trying to capture the UI screens of this application over network to a client (another Java app running on a PC). The client uses JDK 1.3.0. As AWT image is not serializable, I got code that converts UI screens to int[] and persist to client socket as objectoutputstream.writeObject and read the data on client side using ObjectInputStream.readObject() api. Then I am converting the int[] to an Image. Then saving the image as JPEG file using JPEG encoder codec of JDK 1.3.0.
I found the image in black and white even though the UI screens are in color. I have the code below. I am sure JPEG encoder part is not doing that. I am missing something when recreating an image. Could be colormodel or the way I create an image on the client side. I am testing this code on a Win XP box with both server and client running on the same machine. In real scenario, the UI runs on an embedded system with pSOS with pretty limited flash space. I am giving below my code.
I appreciate any help or pointers.
Thanks
Puri
public static String getImageDataHeader(Image img, String sImageName)
final String HEADER = "{0} {1}x{2} {3}";
String params[] = {sImageName,
String.valueOf(img.getWidth(null)),
String.valueOf(img.getHeight(null)),
System.getProperty("os.name")
return MessageFormat.format(HEADER, params);
public static int[] convertImageToIntArray(Image img)
if (img == null)
return null;
int imgResult[] = null;
try
int nImgWidth = img.getWidth(null);
int nImgHeight = img.getHeight(null);
if (nImgWidth < 0 || nImgHeight < 0)
Trace.traceError("Image is not ready");
return null;
Trace.traceInfo("Image size: " + nImgWidth + "x" + nImgHeight);
imgResult = new int[nImgWidth*nImgHeight];
PixelGrabber grabber = new PixelGrabber(img, 0, 0, nImgWidth, nImgHeight, imgResult, 0, nImgWidth);
grabber.grabPixels();
ColorModel model = grabber.getColorModel();
if (null != model)
Trace.traceInfo("Color model is " + model);
int nRMask, nGMask, nBMask, nAMask;
nRMask = model.getRed(0xFFFFFFFF);
nGMask = model.getRed(0xFFFFFFFF);
nBMask = model.getRed(0xFFFFFFFF);
nAMask = model.getRed(0xFFFFFFFF);
Trace.traceInfo("The Red mask: " + Integer.toHexString(nRMask) + ", Green mask: " +
Integer.toHexString(nGMask) + ", Blue mask: " +
Integer.toHexString(nBMask) + ", Alpha mask: " +
Integer.toHexString(nAMask));
if ((grabber.getStatus() & ImageObserver.ABORT) != 0)
Trace.traceError("Unable to grab pixels from the image");
imgResult = null;
catch(Throwable error)
error.printStackTrace();
return imgResult;
public static Image convertIntArrayToImage(Component comp, int imgData[], int nWidth, int nHeight)
if (imgData == null || imgData.length <= 0 || nWidth <= 0 || nHeight <= 0)
return null;
//ColorModel cm = new DirectColorModel(32, 0xFF0000, 0xFF00, 0xFF, 0xFF000000);
ColorModel cm = ColorModel.getRGBdefault();
MemoryImageSource imgSource = new MemoryImageSource(nWidth, nHeight, cm, imgData, 0, nWidth);
//MemoryImageSource imgSource = new MemoryImageSource(nWidth, nHeight, imgData, 0, nWidth);
Image imgDummy = Toolkit.getDefaultToolkit().createImage(imgSource);
Image imgResult = comp.createImage(nWidth, nHeight);
Graphics gc = imgResult.getGraphics();
if (null != gc)
gc.drawImage(imgDummy, 0, 0, nWidth, nHeight, null);
gc.dispose();
gc = null;
return imgResult;
public static boolean saveImageToStream(OutputStream out, Image img, String sImageName)
boolean bResult = true;
try
ObjectOutputStream objOut = new ObjectOutputStream(out);
int imageData[] = convertImageToIntArray(img);
if (null != imageData)
// Now that our image is ready, write it to server
String sHeader = getImageDataHeader(img, sImageName);
objOut.writeObject(sHeader);
objOut.writeObject(imageData);
imageData = null;
else
bResult = false;
objOut.flush();
catch(IOException error)
error.printStackTrace();
bResult = false;
return bResult;
public static Image readImageFromStream(InputStream in, Component comp, StringBuffer sbImageName)
Image imgResult = null;
try
ObjectInputStream objIn = new ObjectInputStream(in);
Object objData;
objData = objIn.readObject();
String sImageName, sSource;
int nWidth, nHeight;
if (objData instanceof String)
String sData = (String) objData;
int nIndex = sData.indexOf(' ');
sImageName = sData.substring(0, nIndex);
sData = sData.substring(nIndex+1);
nIndex = sData.indexOf('x');
nWidth = Math.atoi(sData.substring(0, nIndex));
sData = sData.substring(nIndex+1);
nIndex = sData.indexOf(' ');
nHeight = Math.atoi(sData.substring(0, nIndex));
sSource = sData.substring(nIndex+1);
Trace.traceInfo("Name: " + sImageName + ", Width: " + nWidth + ", Height: " + nHeight + ", Source: " + sSource);
objData = objIn.readObject();
if (objData instanceof int[])
int imgData[] = (int[]) objData;
imgResult = convertIntArrayToImage(comp, imgData, nWidth, nHeight);
sbImageName.setLength(0);
sbImageName.append(sImageName);
catch(Exception error)
error.printStackTrace();
return imgResult;
}While testing more, I found that the client side is generating color UI screens if I use JDK 1.3 JVM for running the server (i.e the side that generates the img) without changing single line of code. But if I use JDK 1.1.8 JVM for the server, the client side is generating black and white versions (aka gray toned) of UI screens. So I added code to save int array that I got from PixelGrabber to a text file with 8 ints for each line in hex format. Generated these files on server side with JVM 1.1.8 and JVM 1.3. What I found is that the 1.1.8 pixel grabber is setting R,G,B components to same value where as 1.3 version is setting them to different values thus resulting in colored UI screens. I don't know why.
-
Linked Image with border on hover
I have a page of tiled image that link to project pages on the website. My boss found a website that he likes how the images appear when you hover over them with the mouse. I know of a way to do this, but I'm not sure what the best way would be: 1) create a rollover image that has the first image without a border, and the second image with a border... this seems like it would take the longest but give me the look I want because there are 55 little images. I have been trying to figure out how to apply the border for a linked image thru a CSS style, but the only thing it will give me is a border that appears all of the time (not just on hover). I'm wondering if there would be a quicker way to do this. Here is a link to the page that I would like to apply the style to: http://stateline7.com/index_files/Page532.htm , and here is the page that my boss liked the appearance of: http://holmes.zenfolio.com/
a img { border:1px solid white; }
a:hover img { border:1px solid green; }
Assuming your background color is white, this will give you a green border on hover with no change in the image's effective size due to the appearance of the border. -
Saving an image in Root folder of tomcat
Hello,
i have an urgent problem with saving an image in the root folder of tomcat, which I want to do without having to specify the entire path.
I have created a class, which i use as a bean in a jsp to save an image to the tomcat root folder.
If I use the following command, the image is saved:
ChartUtilities.saveChartAsJPEG(new File(
"C:/Program Files/Apache Software Foundation/Tomcat 5.5/webapps/trader/images/charts/1.jpg"), chart, 550, 260);
However, I should be doing it like this, which doesn't work and throws me an IO exception:
ChartUtilities.saveChartAsJPEG(new File("images/charts/1.jpg"), chart, 550, 260);
CheersDidn't we have this discussion in another thread? You can't give something urgently. It's semantically anaphoricular.
-
Saving Edited Images to iPhoto '09
I am just beginning to learn to use Photoshop Elements 6 for the Mac. I want to edit my photos in PSE, but organize & store them in iPhoto. After I finish editing a photo in PSE, how to I return the edited photo back to iPhoto?
Thank you.I have just started learning photoshop elements 6 for the Mac and I, too am having a terrible time with saving images. I bought the "Missing Manual Photoshop Elements 6 for the MAC" book and so far cannot find the answers.
I have set PSE as my photo editor in iphoto and when I double-click photos are indeed sent to PSE. My problem is I can't seem to save them back into iphoto. (After searching around this forum, I see that you cannot change name or format and then have iphoto create a version.) However, I have saved images without changing name or format and the new version seems to replace the original - the original is gone! When I go into iphoto I only see the originals if I DID change name or format. And then the new copy, in a different format or with new name, is not in iphoto!
I can find these new versions in PSE>Open. They seem to be in iphoto in a folder called "modified". However when I go into iphoto I cannot find this "modified " folder anywhere!!! Can I only open them thru PSE and are they actually stored in PSE or iphoto. Please help- so frustrated!!! Thanks -
Hi i have got a problem i'm writting a program that reads in a image, get the image pixels, alter the pixels and then write the image back out again. the problem is that when i write it back out the image goes from colour to gray scale and also when i save the image out without alter the image the image still changes slightly.
to be more precise i save the image as a buffered image, get the pixels , edit the pixels and then save it back. i know that the editing of the pixels is not the problem becasue, when i run the code without editing the pixels and just save the image as a new image. it is still changed.
try {
fos = new FileOutputStream(newFilename+".JPG");
} catch (FileNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
try {
ImageIO.write(newImage,"JPG",fos);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}above is the code that i use to save an image.
so if anybody can help me and point me in the right direction that would be great.well i found out that i was altering the pixels somewhere else which is why i had the problem.
but now that i have fixed that and i want to alter only one pixel then all the pixels arround the one i want to alter will chage to a different colour.
i know this becasue i have created a 5*5 image with all pixels being red then i try to alter the 5th across and 4th down. but the result is that from that point the pixels will also change.
i have tried this saving the image as a JPEG, GIF and as PNG and i get the same result
Maybe you are looking for
-
When I import the Beta Photoshop CS3 files into FCP 5.12 on a PPC Dual or Quad G5, I get the Codec Error, "Codec not found. you may be using a compression type without the corresponding hardware card." Is there something I am missing with the beta CS
-
Letter of Credit from Verizon?
I am moving into a new apartment and getting heat and hot water from the gas company. The gas company charges a large deposit for new customers who don't have an established history with them to ensure payments are made on time. They said they'd waiv
-
DVD Decrypter and TV shows on DVD
THanks to you all - I successfully converted DVDs to my iPod video using DVD Decrypter and Videora but I have one question I want to do the same for my TV shows that are on DV 9 SOuth Park, Dave Chappelle, etc ) . Any tips, suggestion casue Ive never
-
F7 and script editor,why F7 icon shows when F7 turned off
I use FF5 and I have F7 turned off yet on my web site script editor page I keep getting these F7 icons appearing (as below) any solutions to removing these,other than manually going through my pages
-
BUG: LR2.0 shows duplicate drive after edit in photoshop export
Lightroom 2.0 shows a new duplicate drive after edit in photoshop export. file opens as DNG in photoshop, saves as PSD, and saves to the right folder on the hard drive. But lightroom now shows 2 "drive G"'s(that's my image vault drive letter) The fol