High Pass Dialog Textbook Exercise

I purchased the Power, Speed and Automatitation textbook to learn Photoshop Scripting. I am working through the exercises in the last chapeter Building Custom Dialogs and have stumbled on the last exercise building a High Pass Dialog. When I test the script ai get a time run error which I am not able to track down. Can someone please look at the script and let me know where the error is coming from.
Many thanks,
//highPassDialog.jsx
//021514
Description:
This dialog gathers data for creating a High Pass layer,
which can shapern or blur a docuemnt.
This dialog shows the use of many differnt types of UI controls
Algorithm:
Stage #1 build the dialog
    Create helloWorldDialog() function
        Place the dialog where it will be displayed
        Add UI elemtnst to function
        Add a group box panel for formating the buttons in a row
        Add On and Cancel buttons
    Create initHelloWorldDialog() function
        Initalize buttons OK and Cancel
        Add Events to OK and Cancel buttons
Hook up the dialog to respond to events (add to SET UP)
Stage #2 display the dialog
    Create runHelloWorldDialog() function
Stage #3 process the results
    processHelloWorldResults() function
    show alert()
Script Installation:
1.Mac place script in Applications/Adobe Photoshop CC/Presets/Scripts
2.Windows place script in C:\Program Files\Adobe\Adobe Photoshop CC#\Presets\Scripts\
3.Restart Photoshop
4.Choose File > Scripts > template
// SET UP
//Enable double clicking from hte Macintosh Finder or Windows  Explorer
#target photoshop
//Make Photoshop the formost Appplication
app.bringToFront();
//** DIALOG STAGE #1 - build the dilaog **
//Create the dialog object and its UI objects
var theDialog = createHighPassDialog();
//Hook up the dialog to respond to events
initHighPassDialog (theDialog);
// MAIN
//** DIALOG STAGE #2 - display the dialog **
if (runHighPassDialog(theDialog) == 1) {
    //User pressed OK
    //** DIALOG STAGE #3 - process the dialog results **
    processHighPassResults(theDialog);
// FUNCTIONS
//Create a dialog for creating the High Pass Layer
function createHighPassDialog() {
        //Create and empty dialog window
        var myDialog = new Window ('dialog',"Create a High Pass Layer");
        //Place the dialog 100px from the left and 100px from the top
        myDialog.frameLocation = [100, 100];
        myDialog.orientation = "row"; 
        myDialog.alignChildren = "top";   
        //Add a group box for the new layer options
        myDialog.optionsPanel = myDialog.add('panel', undefined, "Options");
        myDialog.optionsPanel.orientation = "column";
        myDialog.optionsPanel.alignChildren = "left";
        //Add radio buttons groups fro sharpen vs blur choice
        myDialog.optionsPanel.choiceRadioButtons = myDialog.optionsPanel.add('group');
        myDialog.optionsPanel.choiceRadioButtons.orientation = "row";
        myDialog.optionsPanel.choiceRadioButtons.alignChildren = "top";
        //Add text for user instructiuons
        myDialog.optionsPanel.choiceRadioButtons.staticText =
        myDialog.optionsPanel.choiceRadioButtons.add('statictext', undefined, "Select operation to perform");
        //Crate gropup to align radio buttons
        myDialog.optionsPanel.choiceRadioButtons.radioGroup =
        myDialog.optionsPanel.choiceRadioButtons.add('group');
        myDialog.optionsPanel.choiceRadioButtons.radioGroup.orientation = "column";
        myDialog.optionsPanel.choiceRadioButtons.radioGroup.alignChildren = "left";
        //Add a radio button with a label of Sharpen
        myDialog.optionsPanel.choiceRadioButtons.radioGroup.radioButtonSharpen =
        myDialog.optionsPanel.choiceRadioButtons.radioGroup.add('radiobutton', undefined, "Sharpen");
        myDialog.optionsPanel.choiceRadioButtons.radioGroup.radioButtonSharpen.value = true;
        //Add a radio buon with the label of blur
        myDialog.optionsPanel.choiceRadioButtons.radioGroup.radioButtonBlur =
        myDialog.optionsPanel.choiceRadioButtons.radioGroup.add('radiobutton', undefined, "Blur");
        //Add tool tip with descriptiond for instructions
        myDialog.optionsPanel.choiceRadioButtons.helpTip = "Choose which operation to perform";
        //Add a group for the radius parameter
        myDialog.optionsPanel.radiusGroup = myDialog.optionsPanel.add('group');
        myDialog.optionsPanel.radiusGroup.orientation = "row";
        //Add a text for the radius descriptions
        myDialog.optionsPanel.radiusGroup.staticText =
        myDialog.optionsPanel.radiusGroup.add ('statictext', undefined, "Radius");
        //Add edittext field to display radius value
        myDialog.optionsPanel.radiusGroup.editText =
        myDialog.optionsPanel.radiusGroup.add ('edittext', undefined, "3.0");
        myDialog.optionsPanel.radiusGroup.editText.preferredSize = [60, 20];
        //Add label for units after the edittext field
        myDialog.optionsPanel.radiusGroup.percent =
        myDialog.optionsPanel.radiusGroup.add ('statictext', undefined, "pixels");
        //Add the slider control
        myDialog.optionsPanel.slider = myDialog.optionsPanel.add('slider');
        myDialog.optionsPanel.slider.minvalue = 0.1;
        myDialog.optionsPanel.slider.maxvalue = 3.0;
        myDialog.optionsPanel.slider.preferredSize = [160, 20];
        //Add tooltips for the slider
        myDialog.optionsPanel.radiusGroup.editText.helpTip = "The radius value of the filter applied.";
        myDialog.optionsPanel.slider.helpTip = "The radius value of the filter applied.";
        //----------part 2---------
        //Add a popup menu       
        myDialog.optionsPanel.blendPopup.popUp.add ('item', "Vivid Light");
        myDialog.optionsPanel.blendPopup.popUp.add ('item', "Linear Light");
        myDialog.optionsPanel.blendPopup.popUp.add ('item', "Pin Light");
        //Set the default selected item in the popup list to the first tiem in the array "Overlay"
        myDialog.optionsPanel.blendPopup.items[0].selected = true;
        //Set the value of the blend mode
        myDialog.optionsPanel.blendPopup.popUp.mode = myDialog.optionsPanel.blendPopup.popUp.items[0];
        //----------end part 2----------
        //----------part 4 -------------
        //Add a checkbox for flattening image when done
        myDialog.optionsPanel.flattenBox = myDialog.optionsPanel.add('checkbox', undefined, "Flatten when finished");   
        myDialog.optionsPanel.falttenBox.value = false;
        myDialog.optionsPanel.falttenBox.helpTip =
        "Check yo flatten the layers when processing completed";
        //----------end part 4 -------------
        //DEFAULT OK cancel buttons
        //Add a group box for the OK and Cancel buttons   
        myDialog.buttonPanel = myDialog.add ('group');
        mydialog.buttonPanel.orientation = "column";
        //Add an OK button
        myDialog.buttonPanel.okButton = myDialog.
        buttonPanel.add('button', undefined, "OK");
        //Add a cancel button
        myDialog.buttonPanel.cancelButton = myDialog.
        buttonPanel.add('button', undefined, "Cancel");
        return myDialog;
//Initialize a High Pass dialog to activate buttons
function initHighPassDialog(myDialog) {
        with (myDialog) {           
            //Set the edittext field's value to the slider's value if the slider chages
            optionsPanel.slider.onChanging = function() {
                optionsPanel.radiusgroup.editText.text =optionsPanel.slider.value;
            //Add a group for the blend mode pop UI elements
            myDialog.optionsPanel.blendPopup = myDialog.optionsPanel.add('group');
            myDialog.optionsPanel.blendPopup.orientation = "row";
            //Add popup to select the blendmode
            myDialog.optionsPanel.blendPopup.popup = myDialog.optionsPanel.blendingPopup.add('dropdownlist');
            myDialog.optionsPanel.blendPopup.popup.text = "Select the blending mode";
            myDialog.optionsPanel.blendPopup.helpTip = "Choose the blending mode";
            //Populate the popup with items
            myDialog.optionsPanel.blendPopup.popUp.add ('item', "Overlay");
            myDialog.optionsPanel.blendPopup.popUp.add ('item', "Soft Light");
            myDialog.optionsPanel.blendPopup.popUp.add ('item', "Hard Light");
            //Set the slider's value to the edittext field's value if the edittext changes
            optionsPanel.rediudGroup.editText.onChange = function() {
                optionsPenel.slider.value = optionsPanel.radiusGroup.editText.text;              
            //--------------part 3--------------
            //Set the behavior for the blend menu
            optionsPanel.blendPopup.popUp.onChange = function() {
                    //Capture any changes the user makes after the dialog is dispalyed,
                    //updating the value of the variable for the blend mode
                    optionsPanel.blendPopup.popUp.mode = optionsPanel.blendPopup.popUp.itemd[this.selection.index];
            //--------------end part 3----------
            //DEFAULT Cancel and OK buttons
            //OK button clicked
            buttonPanel.okButton.onCLick = function() {
                 //Check that the radius value makes sense (that itis a number)
                var radiusValueStr = isNaN(myDialog.optionsPanel.radiusgroup.editText.text);
                //Data validation
                if (radiusValueStr ==  true) {
                        alert("Please enter a valid number 0.1 - 250 for 'Radius'");
                        return;
                //If  it is a number, makesure it's between 0.1 - 250 and warn hte user if it isn't
                if (!(my.Dialog.optionsPanel.radiusGroup.editText.text >= 0.1 &&
                myDialog.optionsPanel.radiusGroup.editText.text <= 250)) {
                        alert ("You must enter a number between 0.1 - 250 for 'Radious'");
                        return;
                //Close the dialog - OK clicked
                close(1);
            //Cancel button clicked
            buttonPanel.cancelButton.onCLick = function() {
                 //Close the dialog - Cancel clicked
                 close (2);
//Show the dialog and wait for its return value
function runHighPassDialog(myDialog) {
     //Display the dialog
     return myDialog.show();
//Process the dialog results by showing a message to the user
function processHighPassResults(myDialog){
    //Be sure there is an open document
    if (app.document.length > 0) {
            //Get user choices from the dialog
            var radius = myDialog.optionsPanel.slider.value;
            var blsSharpen = myDialog.optionsPanel.choiceRadioButtons.radioGroup.radioButtonSharpen.value;
            var bFaltten = myDialog.optionsPanel.flattenBox.value;
            //figure out the blend mode constant
            var userChoice = myDialog.optionsPanel.blendPopup.popUp.selection.index;
            var blendMode = BelndMode.OVERLAY;
            if (userChoice == 1)
                    blendMode = BlendMode.SOFTLIGHT;
            else if (userChocie == 2)
                    blendeMode = BlendMode.HARDLIGHT;
            else if (userChocie == 3)
                    blendeMode = BlendMode.VIVIDLIGHT;       
            else if (userChocie == 4)
                    blendeMode = BlendMode.LINEARLIGHT;
            else if (userChocie == 5)
                    blendeMode = BlendMode.PINLIGHT;
            //Run the operation on the activeDocument
            HighPassOperation(app.activeDocument, radius, blenMode, blSharpen, bFlatten);       
    else {
            alert("This dialog requires a docuemnt to be open to run successfully!");

What happens when you hit esc?
What happens when you hit enter?
Have you restored the Preferences yet?
http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html

Similar Messages

  • High pass with color?

    Hello.
    Is there a way to achieve the same effect of high pass without desaturating the image?
    Thanks in advance

    Two ways I can think of:
    1. Immediately after running the High Pass filter, Edit > Fade, and play with the blening mode in the dialog. Various modes will give different effects, so experiment.
                   — or —
    2.Run the High Pass filter on a duplicate layer, and then change its blending mode.

  • Buggy action - 'the command "high pass" is not currently available'

    Hi, I've recently been speedtesting a couple of mac minis with different RAM and scratch configurations. To speedtest I'm running a Photoshop action.
    Today, I added 16Gb RAM (2 x 8Gb) to a 2011 i7 2.7 ghz mac mini and discovered that my previously well functioning speedtest action gets stuck at the High Pass filter step. It pops up a warning - 'the command "high pass" is not currently available'. If I then highlight the high pass stage in the action palette and click play, the filter works and the action continues.
    I googled and found a suggestion to reinstall Photoshop. I did this and the action completed properly - but only once. When I tried to run it again it got stuck as before, at the high pass filter stage.
    Any ideas?
    (The steps in the action prior to this problem: background layer duplicated (layer via copy), image mode from 16bit to 8 bit, unsharp mask on copied layer... then i'm wanting to run the high pass on the same layer, but it stops...)

    Boilerplate-text:
    Are Photoshop and OS fully updated?
    As with all unexplainable Photoshop-problems you might try trashing the prefs (after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed) by keeping command-alt-shift pressed on starting the program or starting from a new user-account.
    System Maintenance (repairing permissions, purging PRAM, running cron-scripts, cleaning caches, etc.) might also be beneficial, Onyx has been recommended for such tasks.
    http://www.apple.com/downloads/macosx/system_disk_utilities/onyx.html
    Weeding out bad fonts never seems to be a bad idea, either. (Validate your fonts in Font Book and remove the bad ones.)
    If 3rd party plug-ins are installed try disabling them to verify if one of those may be responsible for the problem.

  • High pass filter don't work

    i used the following setting for the testing;
    input signal 1: 2khz sinewave, amplitude 1V
    input signal 2: 50Hz sinewave, amplitude 10V
    the above 2 signals are added together and fed into a filter. my objective is to remove signal 1(1V sinewave). i've tried some filter but it don't seem to work. for the attached vi, i used high pass filter. the filter don't work.
    i tried to view the frequency component of the signal before and after the filter and found out that both signals pass through the filter.
    1. why isn't the 50Hz signal being filtered off?
    i had the following values:
    before filter after filter
    50Hz ==> 3Hz
    2kHz ==> 120Hz
    the filter seem to scaled down the frequency compon
    ent instead of filtering off the 50Hz.
    2. why is this so, how can i solve this problem?
    3. what should i take note when setting the parameters of the filter?
    Attachments:
    time2freq_domain.vi ‏573 KB

    You might try increasing the number of FIR filter taps. Also, would an IIR filter work for you? I recoded your example using the waveform filtering VIs that were developed for LabVIEW 6i. Please look at the number of taps for the FIR filter, and the PassBand and StopBand frequencies. Also, notice the IIR filter's superior suppression of the low frequency sinusoid.
    Attachments:
    time2freq_domain2.vi ‏107 KB

  • Use a High Pass Filter for multiple connections

    Hello, you can check this site: http://www.cableboxfilters.com
    You can find the best filter and these are newly designed and is a super mini size high pass filters. They have excellent specifications, dimensions of only 13mm x 40.5mm and a weight of only 18g. These filters are best suitable for use in many communications applications, such as CATV, Cable Internet and other RF systems. Hope that this info can help your problem.
    With too many connections as you mentioned, you must install a High Pass Filter. These are newly designed and is a super mini size high pass filters. They have excellent specifications, dimensions of only 13mm x 40.5mm and a weight of only 18g. These filters are best suitable for use in many communications applications, such as CATV, Cable Internet and other RF systems.

    Hi, Graham,
    You wrote: "...There is a Lowpass filter writen within LabVIEW (IMAQ LowPass) this has been optimized for multicore prosessing and runs pretty efficiently..."
    Sorry, but I can't recognize any advantages of IMAQ LowPass on the DualCore system. See attachment. When this VI running, then I have approx. 50% CPU load, and no any effect when I set 2 cores with IMAQ Multi-Core Options. This take always approx. 60 - 70 ms for 5x5 low pass on 1024x1024 8 bit image.
    I'm missing something?
    Upd:
    Sorry, forgot technical data:
    LabVIEW 8.6f1; Vision 8.6.1; WinXP Prof SP3; Intel Core2 6700 CPU
    Andrey.
    Message Edited by Andrey Dmitriev on 11-19-2008 02:21 PM
    Attachments:
    Benchmark.vi ‏16 KB

  • High pass effect on color

    Does the "high pass sharpening" subdue color saturation of the images?
    I was creating a photo collage type of art in InDesign. I also used Photoshop to sharpen and resize each individual images. I used High Pass sharpening with Edge Masks. After readjusting the images in photoshop I saved them with new names and relinked the new file to the InDesign. When I relinked the new image, there was a noticeable degradation of color saturation. The images looked sharper but a lot more grayer or muddish. In photoshop, I didn't change the color space. So I wondered if the High Pass filter alters the color saturation.
    Here is the link to my photoshop actions that I used to create the sharpening effect. If any one knows what caused the color shift in my file, I would like to solve the problem. This is very important for my future works. Thanks a lot.
    http://www.4shared.com/file/VnawQ90N/High_Pass_Sharpening.html

    I tried to sync the color space in Bridge. But when I click the Color Settings in Bridge, it freezes and stops responding. I don't know what is wrong. There is a  problem details in a window. Can anyone help me?
    Problem signature:
      Problem Event Name:          BEX
      Application Name:          Bridge.exe
      Application Version:          5.0.0.399
      Application Timestamp:          4f5ec62d
      Fault Module Name:          StackHash_0a9e
      Fault Module Version:          0.0.0.0
      Fault Module Timestamp:          00000000
      Exception Offset:          0012f878
      Exception Code:          c0000005
      Exception Data:          00000008
      OS Version:          6.1.7600.2.0.0.256.48
      Locale ID:          1033
      Additional Information 1:          0a9e
      Additional Information 2:          0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:          0a9e
      Additional Information 4:          0a9e372d3b4ad19135b953a78882e789
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt

  • Sharpening with High Pass Filter

    I am using PS6 and Elements 11.
    1.  I import the image from LR
    2.  I duplicate the layer
    3.  I go to Filter....High Pass
    4.  I adjust the gray image to the amount I want to sharpen
    5.  I then go to hard light in the blend modes to change the gray to the image and nothing happens
    6.  The image stays gray and will not change..
    7.  None of the blend modes change the gray image. 
    8. ?
    9.  This happens in both programs.
    Thanks Jean

    If you want to understand how the highpass sharpening works, you should consider the highpass layer copy as a kind of 'adjustment layer'. By itself it only shows middle gray : no correction needed; lighter gray : the pixels should be lightened; darker gray : the pixels should be darkened. In itself, the highpass transformation shows the 'contours' of the image, where sharpening is needed.
    When mixed with the underlying layer, you get the right effect. Changing blend mode is there is no underlying layer with wich to 'blend' does nothing.

  • High Pass Sharpening Panel

    Include more Options for sharpening in Lightroom 4.
    I absolutely love USM, but I also love High Pass sharpening.
    A photographers workflow could be rgeatly sped up if they could do high pass sharpening in Lightroom 4.
    I currently send me photos from LR>Photoshop>LR just to do High pass sharpening.

    I know I've asked about another feature on this forum and you, Jeff, have given me a solid answer to a query that probably was more twisted and not an easy one to answer but I have to agree with you on this issue.
    Why would anyone want to change what is considered by many users to be a superb sharpening engine and implementation in Lightroom?
    I honestly don't find myself transferring many "straight" files into Photoshop for further sharpening since we've had the new sharpening tools and alt-key preview - and the output sharpening is great for both large and small prints on various media types that I print on as part of my business.

  • Using high pass filter

    I have a general question on using HPF in labview.
    If I apply a hpf on 10 sets of data, 20 points each, is the results the same as applying the filter on all 200 points(the same values of course) at once?
    I tried it and the results seem to be differenet....

    Thanks! I will post a sample tomorrow but in the meantime this is what I am trying to do: It is a Butterworth filter, high pass, third order, sampling rate at 20 Hz. I have a version of the program which uses all 200 points and applies the hpf.
    Now I would like to have another program that does the same thing, but this time works on smaller data sets. ..so as I mentioned 10 sets of 20 points each. These data point would be provided continously. Ideally I would like to achieve the same results, but it seems that it may not be possible. Another solution would be to save the data until I have enough points ( to get a valid result) )and then apply the hpf.
    But how many points would I need to achieve similar results?
    Hope this explains what I am trying to do.

  • High pass filter sweeps

    Dear all,
    First I should say that I am relatively new to electronic music and mostly make rock. I do like to put synths in my music, and I am now getting more and more of a taste for adding more electronic effects too in to my recordings. What I am wondering is how to get a high pass sweep without losing volume when I cut those highs. When I automate it in the channel EQ, the volume starts off lower and gets higher. Now this is obviously going to happen, as I am cutting frequencies, so lowering the levels. How do people get a sweep that doesn't do that? I want the volume levels the same during the sweep, and I hear it done so often. Is it just a matter of automation with the volume too to get the levels even, or is there a plugin or a cheeky trick that does it? I have tried auto filter, but cannot get the effect I want. Thanks a lot in advance, all the best, Fred

    Try using a unfiltered version of the string (or sound) which remains constant and couple this with a high version which "sweeps" the eq. Play them together - try with a lo-pass filter on the unfiltered version to get the sound of the "doubled-up" version right with the hi-passed string on top. Layering is probably the answer I think. Try using some compression on the hi-swept sound too.
    Or alternatively, try using bandpass filters if you find a hi-pass filter too extreme and you still need more body. Use resonance too - this will make the sound frequencies which are currently at the "filter cutoff" point louder - as you sweep the cutoff up, the effect of increased resonance should be quite noticeable.
    Best,
    Mickey.

  • High Pass Filter

    I am trying to do a High Pass filter and I press CTRL I and go to use on subject an it is painting subject grey .........don't know what I am doing wrong? Pease help

    Filter > Other > High Pass is where High Pass is.
    Ctrl + I (as in, "India") simply inverts (at least by default).

  • Getting High Pass effect in AE.

    Is there an After Effects equivalent to Photoshop's High Pass plug-in?

    A search of PS-CS3 ehlp systems turned up 5 references to "high pass" in PS but the term actually appears only one place:
    High Pass Retains edge details in the specified radius where sharp color transitions occur and suppresses the rest of the image. (A radius of 0.1 pixel keeps only edge pixels.) The filter removes low-frequency detail from an image and has an effect opposite to that of the Gaussian Blur filter.
    It is helpful to apply the High Pass filter to a continuous-tone image before using the Threshold command or converting the image to Bitmap mode. The filter is useful for extracting line art and large black-and-white areas from scanned images.
    Searching in AE's help system I get 8 hits but the term never actually shows up anywhere except as an audio filter.
    So, umm, I think this can be faked with many filters. Depends on what you're trying to accomplish in AE. Sounds like Unsharp Mask but I'm sure you already know how to use that one.
    The Unsharp Mask effect increases the contrast between colors that define an edge.
    bogiesan

  • How does high pass filter determine frequency

    I Am having a hard time understanding how the high pass filter determines high vs low frequency. What value is it measuring. ? Change in RGB values or Contrast ? I see the words sharpness or blur , but what values determine amount of blurriness or sharpness? Is there and actual frequency being measures or is that just a metaphor To compare it to the audio high pass filter ?
    Any insight into the inner workings of this filter is appreciated.

    Some further explanations:
    Audio signals:
    frequency = cycles per second
    This is the frequency in the time domain.
    An arbitrary signal can be represented by a bundle of harmonic signals (sine, cosine)
    plus a DC-part (direct current, non periodical component).
    A typical high-pass filter for audio signals:
    The cut-off frequency fc is found at the transition between increasing gain
    (low frequency) and fixed gain 1.0 (high frequency).
    frequency   gain (attenuation)
    0.01 fc   0.01
    0.10 fc   0.1
    1.00 fc   0.707
    10.0 fc   1.0
    100  fc   1.0
    A typical high-pass filter for digital images:
    frequency = cycles per unit length or (better) cycles per pixel
    This is the frequency in the spatial domain.
    The highest frequency is 0.5 cycles per pixel (alternating black and white pixels)
    An arbitray row in a digital image can be represented by a bundle of harmonic signals
    plus a DC-part.
    Each channel R,G,B is filtered individually, one after the other.
    Frequency and gain are as above.
    A high-pass filter applies an attenuation <<1 to low frequency signal components
    and removes the DC-component entirely. This would result in a black background.
    Therefore the background is shifted to R=G=B=128 (8bit per channel) or
    R=G=B=0.5 (normalized).
    Sharp edges contain stronger high frequency components. These are retained.
    http://en.wikipedia.org/wiki/High-pass_filter
    In this doc we find a simple implementation:
    y[0] := x[0]
       for i from 1 to n
         y[i] := a * y[i-1] + a * (x[i] - x[i-1])
       return y
    x[i] are values R (or G or B) in a row at column i in the original image
    y[i] are values R (or G or B) in the same row at column i after filtering.
    Factor (a) contains indirectly the cut-off frequency.
    This example does not yet apply the shift to R=G=B=128.
    The implementation can be different (non-recursive filter instead of recursive, as above,
    higher order instead of first order, using a filter kernel 3*3 or 5*5 pixels instead of working
    in each row independently).
    I'm not trying to explain how Photoshop works!  There are so many alternatives.
    Best regards --Gernot Hoffmann

  • How can i disable the high pass filter on the headset mic on the iphone 4?

    i would like to use my iphone for recording and frequency measurement apps.  i have an adapter that allows me to use the headset mic input https://www.petersontuners.com/index.cfm?category=135&action=itemView&itemID=39 however, there is a high pass filter up to about 200Hz on both the headset mic input and the external mic.  one app apparently has a work around in ios6 http://blog.faberacoustical.com/2012/ios/iphone/finally-ios-6-kills-the-filter-o n-headset-and-mic-inputs/ but is there an iphone setting that could temporarily bypass the filter?  if not in ios6, if i upgrade to ios7 will i be able to do this?

    There is no setting on any iPhone to disable/by-pass this.

  • Low Pass + High Pass Filter

    I've just updated from logic 7 to Logic 8. I can't seem to load up some of the filters that I've been accustomed to in Logic 7 - namely the Low Pass Filter, High Pass Filter and the Low Cut Filter. When I load sessions arranged in Logic 7 into Logic 8, I can clearly use them but they are not present in the Filters panel? Any ideas?
    Zav

    zav wrote:
    I've just updated from logic 7 to Logic 8. I can't seem to load up some of the filters that I've been accustomed to in Logic 7 - namely the Low Pass Filter, High Pass Filter and the Low Cut Filter. When I load sessions arranged in Logic 7 into Logic 8, I can clearly use them but they are not present in the Filters panel? Any ideas?
    Zav
    That's because they are in the EQ section. EQ > Single Band >

Maybe you are looking for