How to compute the ColorMatrix?
What's the preferred way to compute the ColorMatrix of a new camera?
Is it possible to compute the ColorMatrix from the ForwardMatrix?
It seems that the ColorMatrix can be computed from the ForwardMatrix using the following formula:
CM = WB * FM^{-1} * MW^{-1}
where:
- WB is the camera neutral values as a diagonal matrix
- FM is the forward matrix
- MW is the chromatic adaptation matrix
I tried this formula on some color profiles made by Adobe and compared with the existing ColorMatrix.
However, this formula yields a different result than the one existing in the profiles.
What am I doing wrong?
In fact the formula would be
=A/B-100%
or
=B/A-100%
given which percentage you which to know
I often use a differerent one:
=(B-A)/A ans of course I apply the percent format to the resulting cell.
I don't know whih is the more efficient.
Yvan KOENIG (VALLAURIS, France) dimanche 18 octobre 2009 12:58:27
Similar Messages
-
How to compute the sum of words(or bytes) in tables?
Sir
Now there are several million records in a database, I want compute the sum of words(or bytes) in the tables by query condition. I have used ADO to access database, and use this SQL sentence-- 'select length(clo1)+length(col2)+..+length(coln) from tablename where ..' --to get resultset, and then sum the result, the speed is slowly. How can i do it in great efficiency?
thanksIncreasing efficiency?
You revisit the requirement. Determine exactly what is needed and whether adding LENGHTs of columns provides a correct, never mind accurate, answer.
Oracle space utilisation, physical row size and so on, are vastly more complex than a simply adding lengths of columns together. -
How to computer the row size of a table
Hi
How can i compute the row size of a table. My general Idea is
create table emp(
empno number(4),
ename varchar2(10),
hire_date date,
update_yn timestamp);
the character set is UFT8
how can i compute the size of this table
thanksHi,
for Avg. row length see this
SQL> desc dba_tables
Name Null? Type
OWNER NOT NULL VARCHAR2(30)
TABLE_NAME NOT NULL VARCHAR2(30)
TABLESPACE_NAME VARCHAR2(30)
CLUSTER_NAME VARCHAR2(30)
IOT_NAME VARCHAR2(30)
PCT_FREE NUMBER
PCT_USED NUMBER
INI_TRANS NUMBER
MAX_TRANS NUMBER
INITIAL_EXTENT NUMBER
NEXT_EXTENT NUMBER
MIN_EXTENTS NUMBER
MAX_EXTENTS NUMBER
PCT_INCREASE NUMBER
FREELISTS NUMBER
FREELIST_GROUPS NUMBER
LOGGING VARCHAR2(3)
BACKED_UP VARCHAR2(1)
NUM_ROWS NUMBER
BLOCKS NUMBER
EMPTY_BLOCKS NUMBER
AVG_SPACE NUMBER
CHAIN_CNT NUMBER
AVG_ROW_LEN NUMBER
AVG_SPACE_FREELIST_BLOCKS NUMBER
NUM_FREELIST_BLOCKS NUMBER
DEGREE VARCHAR2(10)
INSTANCES VARCHAR2(10)
CACHE VARCHAR2(5)
TABLE_LOCK VARCHAR2(8)
SAMPLE_SIZE NUMBER
LAST_ANALYZED DATE
PARTITIONED VARCHAR2(3)
IOT_TYPE VARCHAR2(12)
TEMPORARY VARCHAR2(1)
SECONDARY VARCHAR2(1)
NESTED VARCHAR2(3)
BUFFER_POOL VARCHAR2(7)
ROW_MOVEMENT VARCHAR2(8)
GLOBAL_STATS VARCHAR2(3)
USER_STATS VARCHAR2(3)
DURATION VARCHAR2(15)
SKIP_CORRUPT VARCHAR2(8)
MONITORING VARCHAR2(3)
CLUSTER_OWNER VARCHAR2(30)
DEPENDENCIES VARCHAR2(8)
SQL> Regards! -
How to compute the italian codice fiscale
Is there anyone who can give me a PL/SQL or a package computing the italian codice fiscale getting in input Name, Sirname, birthdate, ...?
I suppose it exists and I don't want to reinvent the wheel.
My oracle version is 8.1.7 i
Thanks in advance!Maybe
using http://www.paginainizio.com/service/strutturacodicefiscale.htm but NOT TESTED (just something to play with)
declare
/* input data */
nome varchar2(50) := 'SUONOME'; /* first name */
cognome varchar2(50) := 'COGNOME'; /* last name */
nascita date := to_date('19331122','yyyymmdd'); /* date of birth */
sesso varchar2(1) := 'M'; /* gender */
comune varchar2(4) := 'A123'; /* birthplace code */
/* obtaining first/last name vowels and consonants */
nome_c varchar2(50) := translate(upper(nome),'~AEIOU','~'); /* first name consonants - vowels deleted */
nome_v varchar2(50) := translate(upper(nome),'~'||nome_c,'~'); /* first name vowels - consonants deleted */
cnome_c varchar2(50) := translate(upper(cognome),'~AEIOU','~'); /* last name consonants - vowels deleted */
cnome_v varchar2(50) := translate(upper(cognome),'~'||cnome_c,'~'); /* last name vowels - consonants deleted */
/* computing code components */
campo_1 varchar2(3) := substr(substr(nome_c,1,1)||substr(nome_c,3,1)||substr(nome_c,4,1)||nome_v,1,3); /* 1st,3rd,4th first name consonant */
campo_2 varchar2(3) := substr(substr(cnome_c,1,1)||substr(cnome_c,2,1)||substr(cnome_c,3,1)||cnome_v,1,3); /* 1st,2nd,3rd last name consonant */
/* vowels should be concatenated when there are not enough consonants -> how about DARIO FO ? DAI FO? */
campo_3 varchar2(2) := to_char(nascita,'YY'); /* last two digits of year of birth */
campo_4 varchar2(1) := substr('ABCDEHLMPRST',to_number(to_char(nascita,'MM')),1); /* month of birth converted */
campo_5 varchar2(2) := lpad(to_char(to_number(to_char(nascita,'DD')) + decode(sesso,'M',0,'F',40,100)),2,'0'); /* day of birth + 40 for women */
campo_6 varchar2(4) := comune;
/* concatenating code (without check character) */
codice varchar2(16) := campo_1 || campo_2 || campo_3 || campo_4 || campo_5 || campo_6;
/* conversion tables for check character computation */
caratt varchar2(36) := '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'; /* characters to be converted */
p_pari varchar2(72) := '000102030405060708090001020304050607080910111213141516171819202122232425'; /* corresponding conversion numbers for even positions */
p_disp varchar2(72) := '010005070913151719210100050709131517192102041820110306081214161022252423'; /* corresponding conversion numbers for odd positions */
/* auxiliary fields */
somma pls_integer := 0;
posiz pls_integer;
begin
for i in 1 .. 15
loop
posiz := instr(caratt,substr(codice,i,1))); /* the position of the i-th code character in the conversion table */
if mod(i,2) = 0 then
somma := somma + to_number(substr(p_pari,2 * posiz - 1,2)); /* the corresponding number added to the sum for even code character positions */
else
somma := somma + to_number(substr(p_disp,2 * posiz - 1,2)); /* the corresponding number added to the sum for odd code character positions */
end if;
end loop;
somma := mod(somma,26); /* the remainder of division */
codice := codice || substr(caratt,somma + 11,1); /* concatenating the check character */
dbms_output.put_line(codice);
end;Regards
Etbin
Edited by: Etbin on 24.12.2011 7:38
row changed to if mod(i,2) = 0 then -
How to compute the percent change between 2 cells results
I'm trying to compute the percent of change (whether it be positive or negative) between the values in 2 cells, each of which is displaying the sum of a column of numbers entered manually.
I'm currently using the following formula, and it seems to be working, but I'd really like to know if I'm accomplishing the result using the "correct" method (i.e. the correct convention).
Any comments or corrections would be appreciated.
Current formula:
=Cell A/Cell B-100%
Is this the best method/formula?
Thanks in advance,
Ron HerrmannIn fact the formula would be
=A/B-100%
or
=B/A-100%
given which percentage you which to know
I often use a differerent one:
=(B-A)/A ans of course I apply the percent format to the resulting cell.
I don't know whih is the more efficient.
Yvan KOENIG (VALLAURIS, France) dimanche 18 octobre 2009 12:58:27 -
How to compute the equation-group?
I want to comupte one equation-group using labview.what can I do this?Provided that here are one
eqution-group,one equation is 6x-9y=29,the other is
-9x+14y=-43;how to solve this !thanks a lot!I assume that you want to find an x and a y that solves the two equations.
You can solve one equation for y and then substitute what y equals into the second evuation to get a value for x. Then take the x value and sub into an original equation to find the y value.
If you are familiar with linear algebra, you can build an array of the coeficients then use Solve Linear Equations.vi . It is found in LabVIEW Full and Pro. -
How to Compute the average six months of customer orders excluding the first orders
Hi all
I am writing some basic sql to generate some measures from a postgres database table that are going to be inserted into a SQL SErver table.
I have to two tasks where I am supposed to generate the average 6 months spend and average 1 year spend using the customer data but excluding the first time orders.
I have some sample data below:
CREATE TABLE orders
persistent_key_str character varying,
ord_id character varying(50),
ord_submitted_date date,
item_sku_id character varying(50),
item_extended_actual_price_amt numeric(18,2)
INSERT INTO orders VALUES ('01120736182','ORD6266073','2010-12-08','100856-01',39.90);
INSERT INTO orders VALUES('01120736182','ORD33997609','2011-11-23','100265-01',49.99);
INSERT INTO orders VALUES('01120736182','ORD33997609','2011-11-23','200020-01',29.99);
INSERT INTO orders VALUES('01120736182','ORD33997609','2011-11-23','100817-01',44.99);
INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','200251-01',79.99);
INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','200269-01',59.99);
INSERT INTO orders VALUES('01011679971','ORD89332495','2012-12-05','200102-01',169.99);
INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','100907-01',89.99);
INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','200840-01',129.99);
INSERT INTO orders VALUES('01120736182','ORD125155068','2013-07-27','201443-01',199.99);
INSERT INTO orders VALUES('01120736182','ORD167230815','2014-06-05','200141-01',59.99);
INSERT INTO orders VALUES('01011679971','ORD174927624','2014-08-16','201395-01',89.99);
INSERT into orders values('01000217334','ORD92524479','2012-12-20','200021-01',29.99);
INSERT into orders values('01000217334','ORD95698491','2013-01-08','200021-01',19.99);
INSERT into orders values('01000217334','ORD90683621','2012-12-12','200021-01',29.990);
INSERT into orders values('01000217334','ORD92524479','2012-12-20','200560-01',29.99);
INSERT into orders values('01000217334','ORD145035525','2013-12-09','200972-01',49.99);
INSERT into orders values('01000217334','ORD145035525','2013-12-09','100436-01',39.99);
INSERT into orders values('01000217334','ORD90683374','2012-12-12','200284-01',39.99);
INSERT into orders values('01000217334','ORD139437285','2013-11-07','201794-01',134.99);
INSERT into orders values('01000827006','W02238550001','2010-06-11','HL 101077',349.000);
INSERT into orders values('01000827006','W01738200001','2009-12-10','EL 100310 BLK',119.96);
INSERT into orders values('01000954259','P00444170001','2009-12-03','PC 100455 BRN',389.99);
INSERT into orders values('01002319116','W02242430001','2010-06-12','TR 100966',35.99);
INSERT into orders values('01002319116','W02242430002','2010-06-12','EL 100985',99.99);
INSERT into orders values('01002319116','P00532470001','2010-05-04','HO 100482',49.99);
Using the data, this is what I have done:
SELECT q.ord_year, avg( item_extended_actual_price_amt )
FROM (
SELECT EXTRACT(YEAR FROM ord_submitted_date) as ord_year, persistent_key_str,
min(ord_submitted_date) as first_order_date
FROM ORDERS
GROUP BY ord_year, persistent_key_str
) q
JOIN ORDERS o
ON q.persistent_key_str = o.persistent_key_str and
q.ord_year = EXTRACT (year from o.ord_submitted_date) and
o.ord_submitted_date > q.first_order_date AND o.ord_submitted_date < q.first_order_date + INTERVAL ' 6 months'
GROUP BY q.ord_year
ORDER BY q.ord_year
Can someone help me look into my query and see whether I am doing it the right way.
Thanks,
IonThis more looks like a mysql code. Please try posting the question in mysql forums
http://forums.mysql.com/
This is one way of doing this in T-SQL
CREATE TABLE orders
persistent_key_str varchar(100),
ord_id varchar(50),
ord_submitted_date date,
item_sku_id varchar(50),
item_extended_actual_price_amt numeric(18,2)
INSERT INTO orders VALUES ('01120736182','ORD6266073','2010-12-08','100856-01',39.90);
INSERT INTO orders VALUES('01120736182','ORD33997609','2011-11-23','100265-01',49.99);
INSERT INTO orders VALUES('01120736182','ORD33997609','2011-11-23','200020-01',29.99);
INSERT INTO orders VALUES('01120736182','ORD33997609','2011-11-23','100817-01',44.99);
INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','200251-01',79.99);
INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','200269-01',59.99);
INSERT INTO orders VALUES('01011679971','ORD89332495','2012-12-05','200102-01',169.99);
INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','100907-01',89.99);
INSERT INTO orders VALUES('01120736182','ORD89267964','2012-12-05','200840-01',129.99);
INSERT INTO orders VALUES('01120736182','ORD125155068','2013-07-27','201443-01',199.99);
INSERT INTO orders VALUES('01120736182','ORD167230815','2014-06-05','200141-01',59.99);
INSERT INTO orders VALUES('01011679971','ORD174927624','2014-08-16','201395-01',89.99);
INSERT into orders values('01000217334','ORD92524479','2012-12-20','200021-01',29.99);
INSERT into orders values('01000217334','ORD95698491','2013-01-08','200021-01',19.99);
INSERT into orders values('01000217334','ORD90683621','2012-12-12','200021-01',29.990);
INSERT into orders values('01000217334','ORD92524479','2012-12-20','200560-01',29.99);
INSERT into orders values('01000217334','ORD145035525','2013-12-09','200972-01',49.99);
INSERT into orders values('01000217334','ORD145035525','2013-12-09','100436-01',39.99);
INSERT into orders values('01000217334','ORD90683374','2012-12-12','200284-01',39.99);
INSERT into orders values('01000217334','ORD139437285','2013-11-07','201794-01',134.99);
INSERT into orders values('01000827006','W02238550001','2010-06-11','HL 101077',349.000);
INSERT into orders values('01000827006','W01738200001','2009-12-10','EL 100310 BLK',119.96);
INSERT into orders values('01000954259','P00444170001','2009-12-03','PC 100455 BRN',389.99);
INSERT into orders values('01002319116','W02242430001','2010-06-12','TR 100966',35.99);
INSERT into orders values('01002319116','W02242430002','2010-06-12','EL 100985',99.99);
INSERT into orders values('01002319116','P00532470001','2010-05-04','HO 100482',49.99);
/*SELECT q.ord_year, avg( item_extended_actual_price_amt )
FROM (
SELECT EXTRACT(YEAR FROM ord_submitted_date) as ord_year, persistent_key_str,
min(ord_submitted_date) as first_order_date
FROM ORDERS
GROUP BY ord_year, persistent_key_str
) q
JOIN ORDERS o
ON q.persistent_key_str = o.persistent_key_str and
q.ord_year = EXTRACT (year from o.ord_submitted_date) and
o.ord_submitted_date > q.first_order_date AND o.ord_submitted_date < q.first_order_date + INTERVAL ' 6 months'
GROUP BY q.ord_year
ORDER BY q.ord_year
with cte as
(select *, row_number() OVER( partition by persistent_key_str order by ord_submitted_date) RN from orders )--where ord_submitted_date between dateadd(month,6,getdate()) and getdate())
SELECT year(cte.ord_submitted_date),avg(cte.item_extended_actual_price_amt) FROM cte
where rn<>1
group by year(cte.ord_submitted_date)
Satheesh
My Blog |
How to ask questions in technical forum -
How Oracle compute the cardinality if no stats
Hi
9.2.0.6
very simple query
SELECT *
FROM TRFPRDTXT.F559215A
WHERE (QALOTN = :KEY1)
| Id | Operation | Name | Rows | Bytes | Cost |
| 0 | SELECT STATEMENT | | 2 | 392 | 2 |
| 1 | TABLE ACCESS BY INDEX ROWID| F559215A | 2 | 392 | 2 |
|* 2 | INDEX RANGE SCAN | F559215A_4 | 2 | | 1 |
Predicate Information (identified by operation id):
2 - access("F559215A"."QALOTN"=:Z)
optimizer_mode = choose
no stats on table/index
the question:
why cardinallity is 2 ?
Thanks for your helpThere are two possibilities (as far as I know):
* dynamic sampling was introduced with 9.2, so the system could gather the statistics on the fly: http://blogs.oracle.com/optimizer/entry/dynamic_sampling_and_its_impact_on_the_optimizer
* if dynamic sampling is not active (I don't know the default in 9.2) then the cbo has to use some default values: http://download.oracle.com/docs/cd/B10500_01/server.920/a96533/stats.htm#25064
The index costing will follow the formula that Wolfgang Breitling first made public in 2002 (and which is discussed in detail in Jonathan Lewis' Cost Based Oracle, Chap. 4, S. 62 ff.):
cost = blevel + ceiling(leaf_blocks * effective index selectivity) + ceiling(clustering factor * effective table selectivity)Regards
Martin Preiss -
RE: How to compute the balance stock
Hi,
user perform a consignment fill-up order a month ago.
When User perform a consignment pick-up with reference to the said consignment fill-up, the program is smart enough to detect the balance qty to be copy over to the pickup document.
My query is
Is there a FM that return the balance qty of that fill-up document?
This is unlike PO whereby you can get the balance stock in a single retreival from the PO history.
Thanks in advanceno reply
-
hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem please
and this is an pic for the problemThere is some troubleshooting for 0xE8 error codes on this page : http://support.apple.com/kb/TS3221 - you could see if anything on that page fixes it
-
Some of my songs are listed twice on my iPod itself. However, when I plug the iPod into my computer, the songs don't show up twice in iTunes when I click on device/music. How do I get rid of the duplicate songs on my iPod?
that is odd! that should not be happening.
Are you syncing your songs right off of itunes itself? because it should be syncing over to the ipod however it is listed in itunes. -
The HP C4480 all in one series PRINTER that I got free with my i-Mac is printing TINY print despite that my computer is set at 13 font Helvetica. How to reset the printer to normal print?
Is the Paper Size: set to US Letter and Scale: set to 100%
Dennis -
How come whenever i plug my iPhone 5 into the computer the device will not show up on my itunes. This is the first time that i have done it since i updated to iOS7 and before i had no problem but now it just wont work.
Hi Celia51510,
Welcome to the Support Communities!
The article below may be able to help you with this issue.
Click on the link to see more details and screenshots.
I can't tell from your post if you are using a Windows or a Mac Computer.
Try deleting the iTunes application and redownloading the version you need below:
iTunes 11.1 Download for Mac
http://support.apple.com/kb/DL1614
iTunes 11.1 for Windows (64-bit)
http://support.apple.com/kb/DL1615
Cheers,
- Judy -
How do I make my computer the primary for my iPhone 3G?
How do I make my computer the primary for my iPhone 3G? I am able to load music from my iTunes library but unable to delete music or create playlists on the phone from itunes. The computer I set the phone up with (primary) was destroyed.
There is no "main" or " primary" account.
Iphone, ipod touch, ipad will sycn with one and only one computer at a time. Syncing to another will indeed erase the current content from the device and replace with content from the new computer.
Copy everything from the old computer or your backup copy of the old computer, to the new one. -
I have a iPod Touch (3rd gen) that has not upgraded it's OS beyond iOS4.2.1 even if I have tried connecting it into iTiunes I have a iPad2 which has been recently upgraded to iOS5 . Both were connected to a laptop computer that my husband will take with him when he moves to a different city. I will most probably buy a second laptop sometime, but meanwhile I want to tether my iPod touch and iPad 2 to my desktop PC for now. Before I took the plunge, I had a few questions which I am hoping this forum will help me answer
1. How to switch the Home PC for these devices? I have already transfered my Music library on to my Home PC and then downloaded and reorganised with iTunes. Since I am reorganising the library anyway I don't minding removing all my music from the iTouch and set it up from scratch for the music. However, I removed all musci from theiTouch, changed it to manual mode and connected it to the desktop- It's detecting it fine- but it still is not the home computer for the iTouch- everytime I try to put new music in it- it is deleting everything old- I can't see the same controls as I see from the laptop at all- how to rectify this? To I need to set this up as a new iPod (restore route)?
on the touch I have very few apps and don't care about them. on the iPad I do have a couple of valuable apps that I want to hold on to- so have n't tinkered with it at all- what is the smoothest way for thsi transition? The iPad doesn't have any music on it at this time, but what to do if I want to transfer some?
2. Is there a way I can store the organised iTunes info in any way- like I said I might buy a new laptop in a few months but do not want to reorganise my iTunes over agaoin- it' a fairly large collection most of which is n't purchased from the iTunes store.
3. Why sin't my iTouch 3G upgrading- it's stuck on iOS4.2.1 but iTunes doesn't show any updates- even with chck updates button iTunes show that it is a current version.
thanks for reading through and any help that I can get to sort this mess out.The recent release of iBooks 1.2.1 has corrected the problem of the missing Dutton edition of Winnie-the-Pooh. It may have been there with the previous install of iBooks but it would never display in the bookshelf. After updating iBooks to 1.2.1, the Dutton version (the one included with iBooks) suddenly appeared on the bookshelf. So it was a software glitch after all and not a fix Apple chose to document explicitly in the update.
Message was edited by: Rick Lang
Maybe you are looking for
-
Is rank() really better than rownum for top-n-queries?
Several sources say that for Oracle databases rank() should be used instead of 'rownum <= n' for top-n-queries. But here we have an application, where we a lot of top-n queries are executed on a big table with several million rows and rank() has a qu
-
How to transfer information from a Samsung Galaxy to my iPhone 5s
how to transfer information from a Samsung Galaxy to my iPhone 5s
-
Import/Export dynpro not working
IMPORT DYNPRO h f e m ID id http://help.sap.com/abapdocu_70/en/ABAPIMPORT_DYNPRO.htm I would like to use IMPORT DYNPRO to import screen attributes and program flow and then perform necessary changes and export/generate the modified screen. well i use
-
Hi All, please help me to map following scenario in SAP:- What is Risk Purchase ? I raise a PO to Vendor but Vendor do not able to supply at time. So that i can send copy to other vendor in emergency. Now how to make the penalty to the defaulter Vend
-
Incoming calls display email instead of name
Since the last OS upgrade, I start getting email address instaed of the name of the caller. Is this a bug?