Histogram Export

I am looking for a script to export the waveform data that may be present in the histogram (not sure if its there)?  Is there something out ther like this? I tried reindeer graphics plug-in Wide Histogram but can't get it to show up.  I am using CS3.
What I want to do is select a portion of an image and extract the spectral waveform data into a spreadsheet. I know it is a wierd request and I can try an clarify if need be.
Thanks.
Mark

The histogram doesn’t represent the wavelengths directly, but displays the number of pixels of varying brightness in the image overall or in the (in case of an RGB-image) three channels, 0 representing black, 255 representing white.
Anyway various (parts of) images may certainly produce very different histograms …
You could try this (it could be adapted for the three channels, but for that it would probably be good to know what form the text should have for Your purposes):
// creates a text-file from the histogram of active file/selection;
// 2009, use it at your own risk;
#target photoshop
if (app.documents.length > 0) {
var myDocument = app.activeDocument;
var theName = myDocument.name.match(/(.*)\.[^\.]+$/)[1];
var thePath = myDocument.path;
var theHistogram = myDocument.histogram;
var theText = new File(thePath+"/"+theName+"_histo.txt");
theText.open("w");
for (a = 0; a < theHistogram.length; a++){
// this line adds the number of the histogram-level;
theText.write(bufferNumberWithZeros(a,3)+"_");
// this line adds the number pixels of the respective histogram-level;
theText.write(theHistogram[a]);
theText.write("\n")
theText.close();
else {
alert ("no open document")
////// buffer number with zeros //////
function bufferNumberWithZeros (number, places) {
var theNumberString = String(number);
for (var o = 0; o < (places - String(number).length); o++) {
theNumberString = String("0" + theNumberString)
return theNumberString

Similar Messages

  • Photoshop Extended Histogram Export

    I am looking at purchasing a copy of Photoshop Extended for use at work.  Does the measurement export include the ability to export histogram data for a selection in L*a*b* color space?  I have had good results with color testing for quality control using my personal copy of CS4 and am looking for a way to allow easier integration with Excel for evaluating data against manufacturing product standards.
    I would also consider learning more about scripting if that is a better approach.
    Thanks!
    -David

    I should have added that the histogram is exported as a CSV text file, which is easily digested by Excel and other spreadsheet programs.
    Paulo

  • Is it possible to export a histogram from labview to excel

    is it possible to export a histogram from labview to excel,and of course get a fancy one

    Hi achfire,
    The LabVIEW Report Generation Toolkit allows you to create different graphs in Microsoft Excel, including Bar Graphs.  Check out the Report Generation Toolkit section of the White Paper below for more information.  I've also linked to a section of the Report Generation Toolkit Help document which gives more details on the different types of graphs you can export.
    Moving Data From LabVIEW Into Excel: http://www.ni.com/newsletter/51339/en/
    Common Graph Types for Reports: http://zone.ni.com/reference/en-XX/help/370274G-01​/lvrgthelp/graph_types/
    Thanks,
    Myriam D.
    Applications Engineer
    National Instruments

  • Export histogram to Excel

    Hi.
    I'm trying to export a histogram in LabView to Excel with the MS Office Report VI. However, when exported to excel the histogram doesn't show objects in bins. Rather, it displays the histogram as a continous graph. Please help!
    Pictures are attached. Second pic is from LabView, last from Excel.
    Attachments:
    Excel histogram VI.JPG ‏35 KB
    LabView histogram.JPG ‏59 KB
    Excel histogram.JPG ‏35 KB

    Anyone?

  • Aperture 3 messes histogram when exporting to either PSD or TIFF

    Hi all,
    I wanted to ask a question regarding how Aperture 3 handles the PSD/TIFF files. I've noticed that when i export a RAW file to Photoshop or to any other plugin (Noise Ninja for this instance) and Aperture prepares the file (i.e. makes a TIFF/PSD copy of the RAW file) it messes my histogram. As a consequence in a specific case i am working on now, it brightens up the shadows and lowers contrast.
    Anyone knows why this happens? Is there any way i can stop this from happening?
    Thanks in advance

    P.S: Setting the Black point to the default Aperture value (3) on the TIFF/PSD file generated, results in a very similar result with the RAW file. Could it be the case that during the file conversion, aperture ignores some Exposure settings?

  • Question - Histogram changes after export?

    When I export to a jpeg file from Lightroom, whether I choose sRGB or ProPhotoRGB, often but not always, the histogram changes dramatically.
    In the worst cases, pictures that looked good and were well balanced are suddenly over-exposed with blown highlights (and I'm not talking fractions!)
    Can anyone explain why this should happen and what is the best way of controlling results as I send the shots to magazines for publication?
    p.s. I have just discovered that if I export to a Tiff file first, then export that Tiff to a jpeg, all in sRGB, it works and the histogram is barely altered. This has to be a bug, surely?

    My comment was not directed at anyone particularly, but rather at Adobe.
    I am tired and weary, after having paid thousands of pounds for their products to have absolutely no sensible recourse to help.
    Their FAQ section is a joke and, like so many large companies that charge very high prices for their products, they abrogate responsibility and leave it to members of forums to provide the answers.
    Indeed, it is something of a miracle to even arrive at anything approaching relevant in this area as their search engine seems to throw up just a very few and mostly obsure results when used. I entered 'altered histogram' and got a sum total of 14 hits, none of which were remotely appropriate. This, I have to say, is far from a new experience for me either, which begs me to ask just how unique is it to process RAW Sony files and convert to JPEG? That's all I do!
    Certainly, I do admire those who are willing to offer their help freely. You, presumably, are one such individual.
    Unfortunately, when all I want to do is work hard and earn a little money, to find software behaving inexplicably and then discover that I seem to be the only person in the whole wide world ever to have seen this effect, despite the millions of others doing pretty much exactly the same thing, I find it very hard to be bouyant and positive.
    To get back to the issue at hand, I understand the basic mechanics of colour space (including the understandable but limiting fixation with ProphotoRGB in Lightroom).
    It would, however, appear that I have now resolved the issue myself by reinstalling just about everything. Of course, I will likely never discover the cause, so pity the next individual who has been overcharged by Adobe and finds themselves in the same boat, when the only solution is a few hours of uninstalling, cleaning registries, reinstalling, etc.

  • Multiple plots (different colours) on a single histogram?

    I have a 2D array of data, and I would like to plot a histogram.
    each row(with 8 elements) would be plotted in pairs, in 2 different colours.
    My chart would  have to look something like the attached image.
    My vi is also attached. Right now it displays the plot (one row for now),but I have a few problems:
    1) How to change the colour of each bar (to be like the excel graph)
    2) how to change the bar plot label ( so instead numeric values 1,2,3,...I would like to have a,b,c,... under each bar)
    3)and how to remove the (0,0) point on  the graph, so you could see the first bar entirelyy, instead of partially.
    I tried bundling the data , dynamic data, and a a bunch of other things  but couldnt get it to work.
    Thanks!!
    Attachments:
    plot.PNG ‏15 KB
    display histogram- 2.vi ‏91 KB

    You can create a histogram of each row by connecting the output of the General Histogram or Histogram VI's (in the Statistics Palette) to a Build Array. Connect the output of Build Array to a Histogram Graph. You can create a Histogram Graph by right clicking on the General Histogram or Histogram VI's Histogram Graph output terminal( Create>>Indicator). That should show you both histograms with different colors in one graph(they may be overlapping though, use the Bar Plots options to see what view is best). Unfortunately, I don't see how you could display it like the graph you posted, but you may create a button that controls a Histogram Graph by using Property Nodes. Right click on the Histogram Graph indicator in the Block Diagram(Create>>Property Node>>Plot>>Visible). If you connect a Boolean control to this property node and place that piece of code inside a while loop, you could turn your plots on and off. You can also create an Invoke Node(Right Click>>Create>>Invoke Node>>Export data to Excel) to Export data to Excel. Make sure you expand the Plot Legend on the upper right corner so you can see the second plot options.
    Here are some links that might be helpful:
    http://zone.ni.com/reference/en-XX/help/371361H-01​/lvconcepts/customizing_graphs_and_charts/
    http://forums.ni.com/t5/LabVIEW/Can-labview-displa​y-a-histogram-plot-of-data/td-p/971038
     I hope this helps.
    Andres G
    Applications Engineer
    National Instruments

  • How can I convert (or switch) the RGB percent values from the LR histogram into RGB values which are shown e. g. in PS/CameraRAW?

    In LR 5.5 (same in previous versions) the RGB values in the histogram are shown in percent (relativ) values. I prefere to see the absolute values, but I can`t find any way to switch. Maybe this option is intentional disabled, because LR works in 16-Bit mode this would result in values up to 2^16. But as i compared the relativ values from LR with the absolute values from PS i run into a conversion problem. The following example shows the differences:
    CameraRAW : RGB, 128,0,0
    Lightroom: RGB, 43,8%, 19,0%, 6,2%
    CameraRAW: RGB, 0,128,0
    Lightroom: RGB, 29,8%, 47,5%, 17,5%
    Mainly i have two questions:
    1. Is there any possibility to change the percent RGB values in LR to absolut values?
    2. How can i convert CameraRAW values to LR values (see above)?

    TThe reason that a design decision was made from the beginning of LR to show only the percentage values was that RGB values are dependent on the color space and the LR histogram and numerical readout are derived from the Develop module's display space which is a hybrid color space with ProPhoto RGB primaries and the sRGB TRC. Thus the numerical values in the display would be different from the exported RGB image (in an orthodox space) and it was feared that this would be misleading. When soft proofing was introduced, because it involved converting the display to an orthodox space, it became possible to use the 0-255 scale in that mode.

  • All of a sudden, files are brown in Lightroom, but not when exported or viewed in Bridge.

    Look at the Histogram. The color layer on top is usually gray tones (not brown). The thumbnails are white dishes on white. As a yesterday, all the images displayed correctly. I opened LR4 today to this. I have not changed or updated my OS since.
    I had to export some images for a client today. I already did touchups. When export them, they look perfect. I also viewed all the photos in Bridge - color is correct. Any thoughts? Thank you.

    Corrupt Monitor Profile. If you calibrate, then recalibrate. If you don't calibrate (you should), change the monitor profile temporarily to sRGB, which will fix things until you get a proper calibration done.

  • Lightroom PSD export inconsistencies and other quirks...

    We are  a  professional imaging organization,  photoshop and lightroom experts (well, at least to our clients we are ..LOL)     We have been battling two very troublesome problems they seem to have been present in every version of LR3 we've used and its getting to the point where its costing us a lot of time so we'de like to address  it if we can.    I suspect its in the  code,  but perhaps its something more obvious...
    For starters, here is our workflow:   1>  Import to DNG,  2 > Adjust  3>  Export as PSD ProphotoRGB    
    We then do our creative work on the images and  use layered PSD files for our intermediate archives (DNG are the originals as shot).  We use Photoshop to size, sharpen and export to final sized JPG  for agency submission.  
    That said,
    Problem #1>    When we  open the PSD files in photoshop (after exporting from LR3)   they are ALWAYS  dimmer, in fact,  we have to go into levels on each and every image and bring the far right slider over to where the  histogram curve starts so that we can recover the luminance.  In other words, if you are looking at the levels histogram in Photoshop,  there is a flat spot on the right hand side.  We end up moving the slider over to pick up the low edge of the "bell curve".      In some cases, this flat spot is severe.       NOT GOOD, we lose shadow detail doing this and quite honestly its  real PITA in terms of time wasted.   
    We notice in general, that even within the same color space, images do not look the same in Photoshop as they did in Lightroom.    That is an issue, they should at least look very close.  
    Problem #2>   When applying an Auto Tone (in develop)  to an image initially  we understand what its doing - setting white and black points -   but in just about  every case,  it applies WAY TOO MUCH contrast.   Again, we always have to slide the contrast slider over  to bring it within our tastes.    We wrote a preset to zero the contrast  but we should not have to do that ?   Is there a way of shutting the contrast off in Auto Tone ?    Its very annoying...
    So anyway, we love LR3, but those two issues are severely limiting our workflow...     any ideas, hints or other suggestions ??
    Thanks,
    Mark

    We notice in general, that even within the same color space, images do not look the same in Photoshop as they did in Lightroom. That is an issue, they should at least look very close.
    I agree with Jeff. Other forum members who have posted with this issue have had a corrupt or incompatible monitor profile. Issues that can cause this are hard drive file corruption, defective calibration puck device, and using monitor calibration software that creates ICC v4 monitor profiles. LR has issues using ICC v4 profiles and it is suggested to always use ICC v2.

  • Poor image quality on exported version

    I am trying to export versions of my photos to a folder on my external drive. Every time I do this the resulting jpg is washed out and has poor resolution + a ton of noise. The resulting image is substantially lighter than the images in my aperture window, yet the histogram does not indicate that the images should be that light or washed out.
    The images are all starting as RAW images. The export settings are for image quality 12, 300 dpi, sRGB, original jpg. I have onscreen proofing turned on and set to sRGB. My print lab said that the image quality could be 10, but when they looked so horrible I bumped them up.
    I had Aperture for a long time before upgrading to Aperture 2 in March. From March to August I did not have any problems, so this is a more recent problem. I have not yet upgraded to Snow Leopard. Please help!!! Thanks!!!

    Hi
    a. make a DiskImage first and test this with Apple DVD-player.
    (File menu and down "Make a DiskImage")
    b. I only use streamingDV - no .m4v or like (may be it works - I don't know)
    else
    *Not knowing the origin to Your problem - General approach when in trouble is as follows.*
    • Free space on internal (start-up) hard disk if it is less than 10Gb should rather have 25Gb
    • Hard disk is untidy. Repair Permissions, Repair Hard disk (Apple Disc Util tool)
    • Delete iDVD pref file - *or rather start a new user/account* - log into this and re-try
    iDVD pref file resides. Mac Hard Disk (start-up HD)/Users/"Your account"/Library/Preferences and is named.
    com.apple.iDVD.plist
    While iDVD is NOT RUNNING - move this file out to desk-top.
    Now restart iDVD.
    • Program miss-match. iDVD 5.0.2, Mac OS X.4.11 AND QuickTime 7.5.5 - is OK - DON’T work under Leopard
    • Program miss-match. iDVD 6.0.4, Mac OS X.4.11 AND QuickTime 7.5.5 - is OK (might work under Leopard)
    • Program miss-match. iDVD’08 v. 7.0.1, Mac OS X.4.11 AND QuickTime 7.5.5 - is OK (might work under Leopard)
    • iDVD (08) v7 Locate theme folder. Move out iDVD1, iDVD 2 and eventually iDVD4 folders to desktop - re-try
    • Try a Cleaning CD/DVD that cleans the laser lens on the DVD burner/player
    iDVD 6.0.4 and iDVD 7.0.1 are compatible with Mac OS X 10.5 Leopard
    Last resort. from Craig. Solved the problem!! Finally!!
    I deleted every iDVD application and folder from my boot drive,
    emptied the trash and then installed iDVD 08 using the customize option
    and I am up and running.
    If You do a re-install be sure to get rid of all iDVD old parts AND then EMPTY the Trash-basket !
    Yours Bengt W

  • Histogram fails to show exif info

    I shoot in raw, I import into lightroom by doing a sync folder. Then I edit my picture using photoshop cs6. I save it as a jpeg. Finally I export this image as a jpeg to a sub folder called Publish, which means its ready for the web.
    problem is when i look at image in lightroom on the right side the histogram has no details, it wont show iso, fstop or anything.
    why is all this data gone? if I look at my original RAW file i can see the exif info in the histogram but on my final exported image its all gone.
    why is this and can it be fixed?
    furthmore it looses all its tags and meta data, I have to copy the metadata back to this file.
    it would be nice if lightroom would reinsert the meta info and exif once its reimported into lightroom.

    maybe i'm doinh something wrong in my workflow. This problem only came recently when I started using LR4
    I import my pictures using Nikon transfer
    than I use View NX to Rename, Tag and delete what i consider bad images.
    now I geotag them using a program called Geosetter.
    finally i go into lightroom 4 and tell it to sync folder 2012
    it finds the images with no problems.
    i go into my folder ie 2012-05-05
    next I stack my images, since i shoot hdr i usually end up with 5 images that are part of a bracket set.
    here is where my confusion and problems begin.
    i have a metadata preset already made "meta info"
    it has my name, and all other details i want each image to have.
    but after i sync my folder this meta info does not apply.
    is there a way after a sync to make it automatically do this.
    problem is i tend to forget.
    so i do this manually. I high light all images on the folder than on right side panel i slect from drop down my Meta info
    it applies ok.
    now i start my post work, i edit file (as original) in photoshop. do what I need and than save it as a jpeg, full rez and full size.
    now i go back to lightroom where my picture i edited appears, as it does not from my photoshop editing.
    but its missing exif info and meta data info also. in fact its been stripped of all data
    at this point i dont know what to do
    so i pick the original raw file right click and select "metadata presets" > copy
    a box appears and it lets me select what fields to copy. I copy.
    now i select the photoshop edited file and right click paste meata data info.
    i double check and the info is good its all normal again.
    here is my dilemma
    if I upload this image to flickr or the web it looks different than what it looks on my computer
    i dont know why and i'm guessing is because it has lightroom adjustments to it
    so my workaround is to Export this picture.
    I right click and choose export to hard drive, and export with full size and res as a jpeg.
    now when i upload this exported JPEG it looks identical to one on my computer but serious problem
    exif and meta info have been stripped
    i dont get it??? i did not tell it to do this
    so i try to copy meta info from the original file but it fails
    it lets me do it but info simply wont stick
    i open file in windows explorer to verify and its NOT read only.
    so i'm at a loss

  • How can I export the number of pixels of each layer into an excel file?

    I would like to export the number of pixels that each layer of an image contains into excel. How can I do this?
    Secondly, as I need to do this with several images, is there any way to name the layers so that all layers with let's say for example the name "yellow" appear in the same column in excel?
    Some background information on why I need to do this... I would like to know how many percent of an image are yellow and have therefore created  layers of one image for each color it contains.
    Thanks for your help!!!

    Maybe my question was a bit unclear. I do not want to find out the number of pixels of a color in a layer but the number of pixels of the complete layer.
    What color these layers are is a different question. I am using images with a very limited range of colors (sort of like the image above but with about 10 colors). I have seperated these colors into layers and now need to count the pixels of each layer and export them.
    You can record number of pixels/layer  into the Measurement Log, then export data to Excel. But I'm not sure how to automate that without scripting.
    Does anyone know how to do this?
    For normal artLayers it is somewhat easy to get the number of pixels in the layer. But that is just how many pixels are in the layer.
    But that is exactly what I need to know, how many pixels are in the layer. I know how to find this out by looking at the histogram of the selection. But I want to export this information of all layers at once into an excel or text file. Any ideas on how to automate this with or without scripting?
    |

  • Imported image looks different than Export

    When i import DNG picture in lightroom it looks like it has some filter on it and when i export it it looks normal so i cant see the real changes while editing the picture
    You can see it clearly on this example, same picture, no edit. just exported

    Your monitor profile is corrupt as is clear from the color cast on the histogram. This happens a lot on windows installations. You need to recalibrate your display. Best is to use a hardware calibrator. Second best (but very far removed) is to use the built in visual calibration tool in windows or mac os X.

  • Noise on export

    New development engine is really great, but there is an issue which did exist in LR3 and got much stronger in LR4 beta, Very often the image visible in Develop module looks much better noise wise than the one which is exported out. Take a look at the example below: the top half is a fragment from the exported image and the bottom one is a screen shot from LR4. It takes a few trial and fail attempts to get the export image right and when it is right the one in LR4 looks much darker than needed.

    But multiple people have found out that sRGB and AdobeRGB soft proofing look exactly like the ProPhoto RGB image in the develop view on a wide gamut monitor. The histogram and the gamut warnings seem to be OK though. But the actual output is bogus.
    Here is the original thread for reference:
    http://forums.adobe.com/message/4129113#4129113
    This is only for softproofing though and not for export. Export to sRGB works fine AFAICT. Getting back to the orginal issue, my guess is that Peter is looking at the im age in Develop in Fit or in Fill. You cannot judge the actual noise reduction applied there. You have to be zoomed in to 1:1 to see it correctly. The basic reason is that a different scaling algorithm is used for the Fit/Fill display than you get upon export. This is done to make Lightroom's develop module not even slower than it already is as the only way ot do the preview zoomed out reliably is to render the entire image and then scale down. Since noody wants to wait 5-10 seconds after updting a single slider, the Develop preview in Fit/Fill is rendered from a subsampled subset of the data. At higher zoom all the data is used but only for the area you are looking at. This causes that you should judge noise and sharpening only at 1:1 or higher.

Maybe you are looking for