Offset Value - ColorMatrixFilter

Hello all,
Please excuse me if this is the wrong part of the Flash forum to post in, or if I did not correctly follow to forum guidelines.
I have searched for some time now for more information on the Offset Value from the ColorMatrixFilter.
I'm writing a paper on 'Matrices within Image Manipulation', and I'm using Adobe Photoshop and Flash as my "base".
I have read http://www.adobe.com/devnet/flash/articles/matrix_transformations_04.html this page, but I still have some questions,
concerning what exactly this value does?
I have no real knowledge about Flash, or any other Adobe Products for that matter, but  it's rather important I understand what I write down in my own paper!
Thank you in advance for any replies!
- Wesley

the key part of the colormatrixfilter is:
redResult = a[0] * srcR + a[1] * srcG + a[2] * srcB + a[3] * srcA + a[4]
greenResult = a[5] * srcR + a[6] * srcG + a[7] * srcB + a[8] * srcA + a[9]
blueResult = a[10] * srcR + a[11] * srcG + a[12] * srcB + a[13] * srcA + a[14]
alphaResult = a[15] * srcR + a[16] * srcG + a[17] * srcB + a[18] * srcA + a[19]
there are 4 lines of code that you need to understand.  each line can be considered independent of the other lines.  once you understand one line, you'll understand them all.
the first line yields the red as a function of the starting r,g,b,a and the top row of the colormatrixfilter.   there's nothing more to understand about that first line.  the remaining lines are no different except they yield different end-colors and are a function of the same starting r,g,b,a and a different row of the colormatrixfilter.

Similar Messages

  • Problem with offset values

    Hi Experts,
    I have a problem with offset values. I have create a variable on OFISCPER, it's characteristic value, indivdual value, mandatory and ready for the input. I need to show the varibel period and the l previous period and so on till 12 periods. I used the offset values (-1, -2, etc.) but when I execute the query I can show just the variable period and the period previous I don`t see. The query is based on multiprovider and don´t has filters. Can anyone help me?

    Leonel,
    You may nt need to have 12 columns in the query designer.
    You could include the keyfigure and restrict it to the variable and create the offset for the 12 periods
    Check this http://help.sap.com/saphelp_nw04/helpdata/en/00/e8d13f7fb44c21e10000000a1550b0/frameset.htm
    -Doodle

  • How to get the offset value in the Bex customer exit?

    Hello Friends,
    I have defined an offset on a variable in the query definition.
    I wish to capture this offset value  in the Bex variable customer exit .
    Does anyone how to get this??
    Thanks,
    Gautam

    I dont think you can capture the offset applied value in a exit as the value is dependent on the variable itself and nothing to capture the result after the offset has been applied.
    why dont you capture the variable value itself and apply the logic to do an offset in the customer exit?

  • Change Offset value of input node in APO order

    Dear experts,
    in order to accomodate overlapping scenario in APO I calculate and update offset value of input nodes of apo planned orders. To do so I use BADI /SAPAPO/RRP_SRC_EXIT method RRP_USEX_PLORD_CREATE. I activate the BADI using heuristic SAP_PP_021. it works fine for APO planned orders. However It is not possible to change production order nodes.
    I have tried using a heuristic (copy of SAP_PP_012) that uses Function Module /SAPAPO/RRP_LC_ORDER_MODIFY. However I can not change orders as I got a livecash error.
    I also tried /SAPAPO/RRP_LC_ORDER_CHANGE. In this case I did not have LC error but I still order offset value was not changed.
    do you have any idea on how to proceed? What I really want is a method to change input nodes of production orders in APO.
    Thank You,

    Hi Anup,
    In customer exit variable you will have to populate your 0FISCPER characterstics,
    You can populate it based on system date, use the FM DATE_TO_PERIOD_CONVERT and you will get current period based on your system date and Fiscal Year variant.
    After that you can just modify these values. and populate your 0FISCPER characteristics.
    If you have to do this calculations based on user input date then follow the same procedure but instead of system date you will have to pass the date entered by customer to this FM.
    Refer the following sample code snippet,
    IF i_step = 2.
          DATA:l_vy7(4) TYPE c,
               l_vm7(3) TYPE c.
          CLEAR: l_s_range,loc_var_range.
          LOOP AT  i_t_var_range    INTO  loc_var_range   WHERE  vnam = 'input var'.
            call the FM convert to period here and give user input date.
            l_vy7 = l_vy7 - 1.
            l_vm7 =  loc_var_range-low+4(3).
            CONCATENATE l_vy7 l_vm7 INTO loc_var_range-low.
            l_s_range-low      = loc_var_range-low.
            l_s_range-sign     = 'I'.
            l_s_range-opt      = 'EQ'.
            APPEND l_s_range   TO   e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.
    Regards,
    Durgesh.

  • Query offset value

    Hi query experts,
    in query properties there is an OFFSET value char is there?
    wat is the use and function and application of OFFSET value?
    could u explain with one example?

    Hi,
    Offset is used to define the time gap between the present time and time variable.
    For Eg:Requirement is like i want to display the values for the current month and for previous month in 2 columns then,
    If i enter calmonth 06.2010 for variable CALMNTH in query i want to show 2 columns -one with 06.2010 data(col1) and another with 07.2010 data(col2).
    So in col1 i restrict 0calmonth with CALMNTH and for col2 i restrict with CALMNTH-1.to get CALMNTH-1 i right click on the variable CALMNTH and set offset as -1.
    [Examples of Offset|http://blog.csdn.net/lvzhqi/archive/2008/05/05/2394168.aspx]
    Hope this helps
    Regards
    Kp

  • Offset values for fisc year /period

    Hi
    normally period values will be 16, and 4 is additional
    how can u use offset values if i need to use last 12 fiscyear/period?
    offset values are not working

    Hi,
    Here you need to define all your offset value's logic in the code itself, so that there is no need to provide your offset values to the variable.
    Hope this helps..
    Rgs,
    Ravikanth.I

  • How to change a Characteristic Offset value with a User Entry?

    I have the characteristic "Calendar Day" with the following restriction
    Between
    FROM:  "Current Calendar Day (SAP Exit ) - 60"
    TO:       Current Calendar Day (SAP Exit)
    60 is the Offset value, this will allows to displays current day and 60 days on the past.
    I want to make the offset value dynamic by using a variable that can be modified by the user, so if the user want to display a year then type 365.
    Here is an screenshot of the Query
    http://farm3.static.flickr.com/2173/2274553449_3c8d0d28a0_o.jpg

    Seems like I misunderstood you, I didn't think about making dynamic the offset value.
    The only way to acheive your requirment is to create a variable with user enter for 0CALDAY and when the user enter a specific date, you display only dates greater than those user entry date, but this case the user will enter a date instead of offset.
    Secondly, if you want the user to enter offset, then create a condition and condition variable in your query and depending on user entery, you display the results.
    hope, either one will work for you.
    thanks.
    Wond

  • Offset value

    HI,
    in the FM of BAPI_ISUPROFILE_UPLOAD if i want to pass +1.5 hours as the offset value  then how will i do? Sinse the field is of length char-3.Is there any NOTE regarding this.
    Edited by: saun_abap22 on Apr 1, 2011 8:39 AM

    Why do you want 1,5 hour offset in the BAPI?
    Do you want to have a day starting at 01:30:00 and ending 01:29:59?
    Just define your profile (in the profile header) with the correct day offset.
    Create a new profile with EEDM06 and define the day offset as 1,5 hour. Then upload your values with the BAPI using the offset there just for summer or winter.
    Alternatively you can also shift the values (from the source, eg. AMR system) so to reflect the period from 00:00:00 to 23:59:59.
    Then you won't need an offset in your profile header.
    Edited by: evolderen on Apr 4, 2011 1:19 PM

  • Problem in using offset value in streams

    hi friends,
    I have been having this problem far few hours. I am unable to understand why this exception is comming, although I know the cause of exception as I have figured it out by now but unable to remove it.
    here is a simple file copy program using character streams wrapped around Buffered streams.
       import java.io.*;
    public class CopyBytes {
        public static void main(String[] args) throws IOException {
            BufferedReader in = null;
            BufferedWriter out = null;
            char []buff=new char[5];
            int offset=0,length=5;
            try {
                in = new BufferedReader(new FileReader("Factorial.java"));*
                out = new BufferedWriter(new FileWriter("outagain.java"));            
                while (true) {
                    in.read(buff,offset,length);     //this line causing error
                    out.write(buff,offset,length);
                    offset+=length;
            } finally {
                if (in != null) {
                    in.close();
                if (out != null) {
                    out.close();
    }when I ran the program I got following exception java.lang.IndexOutOfBountException
    I know the exception is at commented line, but I am not sure wheather this is coming due to offset or length variable
    by the way, first 5 characters from source file have been copied to destination file as I saw.
    thanks in advance

    san_4u wrote:
    how can I skip offset variable as this method must pass one char[] and two int variables.
    would you please explain how these three parameters are being used. I have read it many times but still unable to understand the use of offset and length variables.For the read method, the offset parameter specifies at which index of buff to start writing data.
    For the write method, the offset parameter specifies from which index of buff to start reading data.
    Since you are using buff as temporary buffer only, you can always read stuff into buff at its beginning (i.e. index 0).
    Of course, when writing data to the stream from buff, you should write the data previously stored. So, you should (obviously) use the same offset for writing to the stream as you previously used when reading from the stream. To be able to write exactly the data you previously read, you also need to know how many chars were read and stored in buff. Luckily, that is exactly what the return value of read does tell you (with -1 being a special flag for "no more data available").
    Hope you can figure it out now.

  • How do i put the results from a calculation as the offset value

    hi .. i am trying to set the value of the mask offset from the results i get from a calculation.
    this is what i am trying to do
    i want to get a ROI from an image, so i used thresholding to separate it form the background
    then i find the centroid of the image. i then create a mask a little
    larger than the ROI to get rid of the background in an unthresholded
    image but the position of the mask is at origin(0,0)
    i need the centroid of the mask to be the same as the ROI. so i
    subtract the x and y values of the ROI centroid with the centroid of
    the mask to get the offset.  which is done manually. but i want to
    do it for ROIs in different positions, so i want to get the value of
    the subtraction staight into the VI .. how can i do that..?? i tried
    wiring the value of subtraction into the input of the "set offset" node
    but it does not work .. can anyone help me ??thanks very much

    i managed to get it done...i did not know how about the cluster to element function .. could you comment on my program?
     i'm trying to construct a sign language translator.  for the
    signing. i am using yellow colored gloves with colored finger tips. the
    yellow region is to help me detect the position of the gloves during
    thresholding.
    1st of all .. i do thresholding to separate the ROI from the
    background.. then i put a bouding box around the region of interest. is
    there any better and easier way to do this??
    could anyone point me in the right direction ?
     i am very new to LV and image processing. i always have problem
    using some functions especially when it requires lots of settings.
    sometimes the help file does no help much ..
    my next problem after creating the bounding box is how do i extract
    only the colors from the image? i tried color thresholding but the
    result is gray scale. how do i extract only the yellow region of the
    gloves and the finger tips to be further processed? in MATLAB , color
    segmentation is used.. but i can't figure how it works in LV .. please
    help me .. thanx
    Attachments:
    color threshold_andreas_centroid_mask.vi ‏263 KB

  • Wrong offset value of "Write File.vi"

    Hi LVers,
    to log incomming UDP messages I am using two files. The header (fixed
    length) is stored in the first file and the message body (variable
    length) is stored inthe second file. As an extension to the header
    information I want to store the sctual offset (position of the file
    pointer) of the datalog file. The "WriteFile.vi" is giving this
    information as an output value.
    While reading the headerlog I saw that the output value is sporadically
    the same for two or three calls of the VI.
    Thanks in advance for any help.
    Hans J"org Beesterm"oller

    Hi LVers,
    to log incomming UDP messages I am using two files. The header (fixed
    length) is stored in the first file and the message body (variable
    length) is stored inthe second file. As an extension to the header
    information I want to store the sctual offset (position of the file
    pointer) of the datalog file. The "WriteFile.vi" is giving this
    information as an output value.
    While reading the headerlog I saw that the output value is sporadically
    the same for two or three calls of the VI.
    Thanks in advance for any help.
    Hans J"org Beesterm"oller

  • How to query a datetime field with a datetime offset value

    Hi Experts
    I have a problem where I want to query a date time field with a value with a date time offset, and convert the value to the stored timezone.
    The functionality I am after is that the user enters the value 30/08/2011 22:14:46 -4:00 and the report converts it into the timezone of the stored field and performs the query using the date time filter and the local equivilent of the date time entered.
    Has anyone had experience in date time offsets and OBIEE?
    suggestions appreciated.
    Cheers

    Hi,
    Use below one
    cast the timestampadd (sql_tsi_year, -1, timestampadd (sql_tsi_day, -1, current_timestamp)) to a date and see if it
    drops the current time stamp and makes it 00:00:00
    Thanks
    Deva

  • BEx report issue on setting offset value

    Friends,
    I have got a Bex reporting requirement as follows.
    Given a Calendar week I have to show data for 5 Key figures for the next 3 calendar weeks.  For ex: if I enter 05/2006 I have to show data for 05/2006, 06/2006 and 07/2006. 
    I thoght of using the Off Set parameter for all the Key figures, and for testing I did for 2nd set of Key figures with off set (1)..but these key figures are not showing any data.. Is it I am missing anything here ??
    Please comment if you have any better thoght of doing this..
    Thanks
    Mavi

    Hi,
      The format of period you gave refers to month i believe. If it is right, check the offsets once again. If the user enters fiscal year period, it should be converted in to week period using an customer exit variable(if you don,t have 0CALWEEK) and set offsets.
    Check this link, you may get some idea from that.
    Re: Aging Report

  • Problem with offset value: field type p does not permit subfield access

    Hi experts,
    In my table am having one field ,
    Filed name : planfinish
    data type : dec    Length : 15
    data store in this field is :    12.05.2010 03:59:00 this format.
    i want to remove year 2010 from this above data by using offset.
    i have try with code :   lv_year = lv_planfininsh+6(4).      n also declare lv_year as dec 15.
    still am getting error. field type p does not permit subfield access
    kindly suggest on this.
    thx in advance.

    a packed decimal field (P) is a numeric field that is always 8 bytes long.  The (15) is the DISPLAY or max number of digits characteristic.  Like all true numeric types (not 'N'), offset is meaningless and you do NOT have format 12.05.2010 03:59:00  in a P field!  You have 15 digits and a sign, and any decimal point is implied by your data declaration.
    Look at keyword CONVERT if this is a timestamp field.

  • Difference?: Offset Audio Sync Tool and Audio Frame Offset Value

    Here's my Set-Up:
    Editing a project shot film, audio recorded to CD. Xfer'd to DVCProHD with audio synced up. Downconverted capture to DV for editing in powerbook.
    Computer: 1.67 ghz PowerBook G4 with 1.5 GB RAM
    Final Cut Pro Version: 5.0.4
    QuickTime: 7.0.4
    OSX: 10.4.4
    Editing timebase: 29.97 non-drop
    My problem:
    I have clips that when played in the viewer are fine and in sync. When cut into the timeline some drift out of sync. If I apply the offset Audio Sync Tool at it's default 2 frames to the master clip and cut it back in it goes back to sync - for a while. Matchframe back to master clip and it's OK. Why is the timeline not holding the setting? Corrupt timeline?
    When and how is the Audio Frame Offset (default is 4) found in Systme Settings/Playback Control used? Is there a relationship between it and the Offset Audio Sync Tool?
    FWIW: tapes were batched captured - I have master clips that are all about 22 minutes long. I subclipped each take and scene for editing. When I use the offset audio sync tool I apply it to the long Master clips. The problematic Subclips don't seem to be affected if I try to apply just to them.
    TIA.

    Being exported from tower mac, not laptop... we have tried exporting directly from final cut and from quicktime pro... sync is off when played on PCs but seems fine on the mac...we have tried adjusting the frame offset as well... do think it could have anything to do with clicking the box "prepare for internet streaming"
    Thanks

Maybe you are looking for

  • I want to but can't play WAVs and MP3s in the same folder, please he

    Hello, I have a Zen Nano Plus. One of the reasons I got it was because it has a built in microphone. When you record with the mic it saves it as a WAV file, and puts it in the "recorded" file. I want to make a folder with both songs (mp3s) and bits o

  • Processing Empty files

    Hi Friends, We got a scenario of processing empty XML files with output as empty files. Two possible soultions are with the help of custom modules in Sender adapters and by using XSLT mapping by adding the XML tags if the payload is empty. Is there i

  • Deleting old iweb site

    i have an old iweb site from 2006 that i need to bring down yet do not have the original domain file. Google webmaster denied request to make it unsearchable. any ideas on how to do this?

  • Remove un-used photos from library

    i have 68,000 photos in my library. About HALF of them are not used in any album. That is, after import, I have deleted half of the pictures from the albums. iPhoto is very slow to respond. I think it has to do with the large photo library. Is there

  • SSH changes vs future firmware update

    Hullo, I have made some changes to WD My Cloud via SHH: I disabled ipv6;I stopped two services through crontab (S85wdmcserverd and S86wdphotodbmergerd)etc, according to http://blog.cloud-client.info/?p=1365 In case of future firmware update and I per