GIMP :: How To Extract RGB Pixel Data From JPG
Dec 7, 2011
I am trying to take a jpg file of an image, and write each RGB pixel color's value into a 3 component integer vector corresponding to the RGB components of the color for that pixel. For each pixel in the jpg, I wish to write the corresponding 3 by 1 integer vector into a matrix after which I plan to do a SVD decomposition of the newly constructed matrix to do an image analysis.
Any plug-in that allows one to efficiently iterate through each pixel in a jpg, and convert the pixel data to a RGB integer vector, and say write to a file?
Specific Details: I am using gimp 2.6 as my image editor, and wish to collect all the RGB 3 by 1 integer vectors (where each 3 by 1 integer vector corresponds to RGB color of exactly one pixel in the jpg image) into a matrix of integer so that I can do a reduced SVD decomposition of that matrix to analyse the pixel data: I wish to compare two similar images by using the SVD decomposition of integer matrices corresponding to the two images saved as jpg files pic1.jpg and pic2.jpg.
View 4 Replies
ADVERTISEMENT
Jul 15, 2013
I am using Photoshop CS5.
Right now I am trying to extract edited area and add some effects only on the area. I added some hand paintings on a picture and I need to extract hand painted area from the picture and add some effects on the extracted hand paintings and combine it with the original picture. I know I should hand paint on a different layer and add some effects on the layer and combine it with the picture, but I have to do what I am doing right now.
See pictures below.(those pictures are much simpler than my pictures I am editing right now)
There is a layer that has only 1 color, green.And 2nd picture has pinky letter A on 1st layer, so 2nd layer has green and pink color. I need to extract pinky A letter from 2nd layer and need to add some effects only on the letter A, and combine 1st layer and edited letter A to make 3rd layer.
I tried to use blend mode Difference to extract edited area but it changes the color of the area.And I don't want to use select tool & alpha mask, because my picture is much complicated.
What I want to do is something like Difference Matte effect in After Effects. Is it possible in Photoshop?
[URL]........
[URL]........
View 3 Replies
View Related
Mar 13, 2011
I managed to remove the background, of an image,(A whit background) and put the image on top of a transparent layer. made a transparent image. When I place this image over a light color background, it looks fine, but when I place it over a dark color background, the edge of the image looks very rough and dirty, I think it's because some of the anti alias from the original image, how can I make it a clean image without going to delete pixel by pixel?
View 2 Replies
View Related
Jul 26, 2012
We are developing an application using functionality of Gimp´s channel mixer with java.
Our problem is that we don’t Know how channel mix works exactly for transforming pixel by pixel in Java.
For example,
We have an image an do on it the next mix:
Output Channel = Red
Red=200.0
Green=0.0
Blue=0.0
For simulate that, we transform all pixels with Red Component *2 and 255 (maximum) if is greater.
Our problem is:
Output Channel = Red
Red=200.0
Green=60.0
Blue=0.0
How can I simulate that?
View 1 Replies
View Related
Jan 23, 2013
I work in a manufacturing facility and we are trying to come up with a way to extract data from an AutoCAD file in to a .KML or .CSV file which gives coordinate points, etc.
This will be used in a mapping-type software to display/highlight areas of the plant with zooming capabilities and information shown on the left-side. We are trying to make it look something like Google Maps, so it can used to determine areas of the plant undergoing work, lighting zones, etc.
In a nutshell, I want to be able to extract coordinate data from our layout(s) which can used to pinpoint locations on the map and highlight regions, etc. Perhaps it could export data in to Excel with attributes assigned to the coordinates which give Area, Bay Location, etc. The initial thought was to somehow export this to a .KML file and use that as a starting point.
View 2 Replies
View Related
May 27, 2011
is there any way to use data extraction and get the dimensions of the solid. Using dynamic blocks on 3d solid is not an option as far as i know. I tried using block with attributes and field which refer to a dimension line but it's too complicated and takes far more time than just check them by hand.
View 0 Replies
View Related
Oct 31, 2012
I have tried this question before but it is now becomming a little more urgent. I would like to extract data I can see in a viewport then add it to the data it finds in the paperspace of the sheet. I don't want the entire drawing (modelspace) just what is seen in the viewport. Then do this process again and so on. 1 excel sheet per 1 sheet.
View 1 Replies
View Related
Feb 2, 2013
I enter data into an Excel job setup worksheet. I then want to be able to extract data from given cells in the Excel worksheet, and have this become fields in AutoCAD. I do not want to use a table in AutoCAD - I want (ideally) to have the Excel data come in to AutoCAD as a field. I can see that Data Links tends to come in only to a table in AutoCAD.
View 1 Replies
View Related
May 9, 2013
Seeing this error
Error on Line 10 : 'SealString_1' is not declared. It may be inaccessible due to its protection level.
Dim SealString_1 As String Dim SealString_2 As String Dim SealString_3 As String Dim SealString_4 As String Dim SealString_5 As String Dim SealString_6 As String Dim SealString_7 As String For Each S As String In SealString_1.Split(",") If i = 0 Then name = S If i = 1 Then name = OD If i = 2 Then name = ID If i = 3 Then name = DE If i = 4 Then name = LI i = i + 1 Next S
View 1 Replies
View Related
Jun 18, 2012
I need to extract data from AutoCad Drawing using C# or VB.Net.
I have a Title Block which is not inserted using attributes. It has some horizontal & vertical lines drawn to look like a table and text added between them. See the attchment.
I need to extract data from that and display in Ms-Excel or in a datagridview.
View 9 Replies
View Related
Feb 20, 2014
Can you extract the data from tracking/story editor outside of InDesign? I do a large catalogue and want a way to identify which product sets had changes made to them or not, but not just within story editor, but download the data to say a txt file or excel, etc.
View 4 Replies
View Related
Oct 6, 2011
I am trying to write a lisp file that extracts the LAYER, Z, X, Y, TEXT HEIGHT, POINT NUMBER, from the attached DXF file. Ultimately I will have the lisp insert a "POINT" at the X,Y,Z, cords, and then a "TEXT" entity at the same coordinates with the text height value and the point number string. Both entities need to be on the layer ending in "-PN". The layer name will change depending on the date. I have a third party program that creates the DXF file.
The point of the lisp file is to insert the point numbers and points into my drawing at their correct locations. For the life of me I can not make this work. I have attached the little bit of lisp I have, which unfortunately does not work properly because of it searching for the "TEXT" entry in the DXF file of which there are three per point number. I only need one. I have also attached the DXF file I have. maybe just an overall procedure that I can then code myself? I'm just not good at getting lisp to read a file and extract what I want from it.
View 4 Replies
View Related
Aug 15, 2013
Is there a method of extracting XYZ data to use for CNC tube bending from components developed in frame generator ? I know that in routed systems you can export that data, but can the same thing be done with frame generator or any individual bent tube or pipe part?
View 4 Replies
View Related
Sep 18, 2000
I would like a lisp routine that can extract and export the x, y, z coordinates of all the points in a drawing into a text file so I can use the same in excel.
View 9 Replies
View Related
May 17, 2013
I have an excel document with a document header reserving rows 1-12. When i use "extract data" in autocad, i don't want the excel header to disappear. Can i set another cell than A1 to be the starting cell in Excel? Or how do i keep the header in the document?
View 5 Replies
View Related
Jul 23, 2013
I came across something very weird and would like to know how to correct it. There are a series of scanned Japanese manga that are JPG files, but for some reason have non-standard pixel aspect ratios stored.
I can open it in Photoshop, uncheck "pixel aspect ratio correction" in the view menu, and it looks like it should. However, what I am curious is how to permanently change this data in the JPG without losing quality.
A friend of mine came up with a fix - open it in a hex editor and change the first 20 bytes to "FF D8 FF E0 00 10 4A 46 49 46 00 01 01 48 01 48 01 2C 00 00". But any way to do this intelligently so I can batch-process the entire bunch of images. There's a whole series of them that all have improper PAR data.
Here's a link to the file in question:
[URL].....
Note that the proper display is to set it to square pixels. And if I recall correctly, that's the default for JPG - which means whoever made this image encoded some custom ones in it, and I want to remove them.
For what it's worth, I can open it in Photoshop, uncheck "pixel aspect ratio correction", then save it as PNG and the PNG file will be fine. But that results in larger files, and again it's not very ideal for a large group of images.
Does Photoshop has the ability to batch-process JPEGs, just to REMOVE the PAR data (or reset it to square), rather than re-encode or re-save the image as another format?
View 2 Replies
View Related
Aug 27, 2013
I've taken a color picture and made it black and white by doing the following: Layer>New Adjustment Layer>Hue/Saturation. I brought the saturation down to -100. The pencil is selected and my foreground color is black.
When I try to select the flowers in my picture to bring out their color (within the black and white image), I get a circle with a black line thru it and the error message "could not rasterize because the pixel data for this layer is not directly editable". The steps I followed are working for most of my team but some of us are getting this error message.
View 2 Replies
View Related
Oct 12, 2012
Feature that would pick the right color on the 1st mouse click when working with images that have many colors and shades etc...Today we need to move the mouse over the pixel and click it to select the color under it and make it active, only then we get the RGB/HSV/Alpha info about it.and if its not the correct pixel info we need to select again. etc...
to make the color selection faster and more accurate on the first click and also enable us to select directly only the pixel with RGB info we want.
It would be great to have online/active display of the Color and RGB/HSV/ALPHA information on the pixel under the color picker , in the toolbar like in the picture i have added.this would make color selection easy and with less clicks on the mouse.just move the mouse over the image, look at the color and select the color you need.the data can be placed anywhere, I just placed it there since its connected to the tool.
This would be great to have on other tools, like the (Magical) Fill Bucket so we can select the color we want to fill with other color etc...or the Magic Wand selection tool to select the color with the RGB info we want.
View 14 Replies
View Related
Jan 3, 2012
I am new Gimp user and this software is very impressive.
I am trying to migrate to Gimp some tasks I am familiarized to do with Corel PaintShop. I couldn’t find yet an easy way to extract objects with precision and without hard-work. Follow bellow the way PaintShop works on it (you tube links). How (or recommend any tutorial) about smart ways of extracting objects through Gimp? [URL]....
View 2 Replies
View Related
Feb 20, 2013
i have been doing HTML off and on for a few years but am really starting to get really heavy into it, as well as CSS and other tools...and have just discovered GIMP
i have an image..which happens to be my business card and to begin with, it was an .eps file, but i converted it to a .jpg...what i am wanting to figure out, and do with it is use it for my web page i am building
it has a background on it and on top of it it has my text...i am wanting to keep the text also, but my main concern is to use just the background for my website....how is extracting the back ground away from the text possible in GIMP and also saving the text as well.
View 5 Replies
View Related
Aug 17, 2013
I'm new to GIMP and I'd like to know how to cut out or extract an object from it's background.
There's a fest being held at my college and I've been assigned to cut out the logo from the posters of the previous year (I've attatched a copy of it below). I've tried using the cut tool, the lasso and also the foreground selection tool. The cut tool and the lasso tool didn't work as the object is quite complicated whilst the foreground selection tool happens to coat the logo instead of the background. I've tried invert and it doesn't work. Is there any other way to extract the logo?
A copy of the poster :
View 1 Replies
View Related
May 26, 2012
I am doing a head start in GIMP. That means i am pretty new to GIMP. I have a bunch of tasks to do.
At the moment - i have a special task. i have a image that has got some arrows - i want to extract the colors (that are the exact colors of all the arrows.) After this i want to draw in a new image a bunch of balls - exactly with these colors. Is this doable!?
´
Question: how do i do extract the exact colors - can i get the exact color scheme - some hexa-code or how would you do that!?
Attached File(s) pfeile_ausschnitt_.jpg (40.75K)
Number of downloads: 3
crazy_balls_only.jpg (67.61K)
Number of downloads: 3
View 7 Replies
View Related
May 26, 2012
So I was making some pics less blurry using a method invloving grain extract, and in one pic I forgot a step and saved it in its grain extract mode. Is there any way to change the picture back into its original? It's too late to just press undo since I already closed GIMP.
View 1 Replies
View Related
Feb 6, 2012
How I extract a reasonably dark image from its background? Below are two identical images with white background.
But the preset color of my vistaprint business card is light blue. So I just want to paste the image from the links below onto a light blue business card if that is possible.
[URL]........
[URL]........
This is almost 100% what I want: [URL].......
but for some reason the resolution from this home made job comes out terrible at Vista Print so I have to do the card writing on their site and give them a better resolution image which the one in the first two links is.
View 17 Replies
View Related
Sep 18, 2012
I am attempting to create screenshots from an old video game and one part of the game includes a semi-transparent overlay layer that I would like to extract into its own image. I am able to render each layer separately in the emulator I'm using, but the screenshot tool is only able to export the final rendered image, so the transparent layer, when rendered alone, still results in a screenshot where it has been merged with the game palette's background color. I have managed to get 2 different copies of the overlay image using 2 different background colors, but I don't know the transparency percentage on the overlay. Is it possible to extract the original semi-transparent overlay with its original colors and transparency levels knowing the original background color? I can get more screenshots with different background colors if that would work. Also, the overlay only has a 5-color palette, so it's not a terribly complex image. I'm attaching the images I have with the background colors included as separate layers in each.
View 3 Replies
View Related
Feb 13, 2007
Upon trying to open a line sheet i'm working on, photoshop tells me:
Problems were encountered reading layers
"..."
"..."
"..."
Because the layer is not a valid layer. Some layers will use existing pixel data.
View 5 Replies
View Related
Dec 11, 2013
this is probally the most noob question ever but I can't get a 1 pixel brush, 3x3 is the smallest brush I can get
View 5 Replies
View Related
Nov 24, 2013
I have a picture, I am looking to take one pixel of color and copy it nearby over another pixel. How do I do this? try to inform me about the exact brush and size I need to select as I cannot figure out the correct combo to do so.
View 1 Replies
View Related
Jun 20, 2012
I need to look at the pixel intensity of a gray scale image to write some code. I have used some trivial softwares like paintshop pro earlier where you can see the pixel intensity being displayed along with the co ordinates of the pixels as you slide your mouse pointer across. In Gimp 2.8 for windows, i can see the co ordinates but not the intensity. My image is a grayscale image.
View 4 Replies
View Related
Jul 25, 2013
I have an image which i would like to measure the pixel intensity along a specific vector. I do not want the total pixel intensity for the entire image, i would like to draw a line, ie with the measurement tool and get a graph showing the pixel intensity as you travel along that line.
View 5 Replies
View Related
Jan 19, 2014
I have a 2013 Macbook Pro 15 with discrete graphics and plenty of RAM, so I cannot image the computer is to blame. I have 2.8.10. When using features like auto white balance it takes way too long to change the pixel colors. I have installed GIMP in parallels and it runs faster through the Windows application than it does directly on my Mac. Is this just the result of the mac build being not as refined? Is there a setting that I need to change? I have the Tile Cache on 8GB and number of processors on 8 (4 actual, 4 virtual).
View 4 Replies
View Related