SlideShare una empresa de Scribd logo
1 de 75
The Art and Science of
 Digital Compositing




         김정근
Chapter 5

Basic Image Compositing
Agenda


 Multisource Operators

 The Matte Image

 The Integrated Matte Channel

 Additional Operators

 Masks

 Compositing with Premultiplied Images

 Morphing



                                          3
Multisource Operators
Multisource Operators




A                       B



                            5
Add




O=A+B


        6
Subtract




O=A-B


           7
Subtract

 Subtract 는 대칭되는 Operator 가 아님

       (B + A) equals (A + B), but (A - B) does lot equal (B - A).




                                                                     8
Multisource Operators




A- B                  B-A



                            9
Subtract

 Subtract 는 대칭되는 Operator 가 아님

    (B + A) equals (A + B), but (A - B) does lot equal (B - A)

 모든 0 이하 또는 음수 값을 클립

 Subtract Operator 의 절대값을 반환하도록 지정하는 것은 유용(Chapter 6)

 절대값을 반환한 Subtract Operator은 대칭 연산




                                                                 10
Subtract




O = |A – B|


              11
Mix




이미지 B의 25 %와 이미지 A의 75 %를 혼합의 결과
                              소스이미지는 처음에는 이미지 A의 100%를
      O = (MV * A) + [(1   - 표현하기B)
                             MV) * 위해서 단순히 mix 값을 애니메이트 한
                              뒤 마지막으로는 이미지 B의 100%를 표현
             MV = mix value
                                                       12
The Matte Image
The Matte Image




                  14
The Matte Image




                  15
The Matte Image



Matte              Mask



Alpha                Key


                           16
The Matte Image



배경을 들어나 보이기 위해 전경의 섹션을       Matte
                             Out


Mask    어떤 영역에 영향을 주지 않기 위해 3번째 이미지로

  off

                                       17
The Matte Image



Matte               Mask

        컨트롤할 때 이미지를 참고하는 것
    혹은 오퍼레이션에서 어떤 특정 파라미터들을

Alpha 용도(ex : Color Correction)로 사용
   제한하는
                 Key
                    비디오 세계에서 일반적인 다른 용어




                                          18
The Matte Image

   일반적인 이미지와 데이터에 관해서는 다르지 않음
    –   일반적인 이미지와 같은 방식으로 조작이 가능




   Scene의 시각적 표현을 제공 합성작업을 제어하는데 사용되는 유틸리티 이미지로써 사용


   일반적으로 Single Channel 이며 흑백이미지
    –   세 개의 별도 채널이 필요치 않으며 지정된 컬러로 주어진 픽셀에 대한 투명도는 범위 0~1에서 하나의 숫자값으로 표현



   많은 시스템 파일 포맷이 싱글 채널이미지를 서포트 / 단순히 RGB 이미지의 세채널에 동일
    한 정보의 사본을 배치함
    –   중복되며 디스크 공간을 차지



   매트 이미지가 네번째 채널 이미지의 파트일때 매트 채널 또는 알파채널



                                                                       19
Keymix




A     B      Matte




                     20
Keymix




                  Mix operator 와 비슷하지만 고정된 Mix 값 대신 매
O = (A * M) + [(1 - M) * B]   트이미지에 의해 결정되어
                      각 픽셀에 대한 구체적인 혼합 값이 있음

                                                  21
The Integrated Matte Channel
The Integrated Matte Channel



R channel
G channel
B channel        Color * alpha
A channel

                                 23
The Integrated Matte Channel




Premultiplied Image
             알파채널로 멀티플라이된 RGB채널 이미지




            tga, png, iff



                                      24
The Integrated Matte Channel




*


                 Premultiplied Image


                                       25
The Integrated Matte Channel



어떠한 이미지 A는

  Argb = The RGB channels only.

  Aa = The alpha, or matte channel, only.

  A = All the channels (be there three or more) of the image

M = matte channel을 독점적으로 사용되는 이미지 (Grayscale, Single Channel)


            Orgb = Argb + Brgb or Oa = Aa + Ba



                                                                26
Over


                        -




*                                     *




            +                     =


                              Keymix 와 유사함
    O = (A * M) + [(1 - M) * B]
                  단 통합매트 채널을 활용하여 단순화함(4 채널)
                                               27
Over


보조 알파채널로 완벽하게 Premultiplied 이미지가 됐을때 Over 의 방정식

              Orgb = Argb + [ (1 - Aa) * Brgb ]

            출력이미지의 매트 채널의 방정식

                Oa = Aa + [ (1 - Aa) * Ba ]


               4 채널에 대한 단순 방정식
             Orgba = Argba + [ (1 - Aa) * Brgba ]
                                  전경에 대한 Premultiplied 이미지임을 가정하기 때
                                               문에 이것은 잘 작동함
                                  Premultiplied 가 없을때나 다른 연산자를 함께 작
                                         업하는 경우에 혼란이 있을수 있음
                                                                 28
Additional Operators
Additional Operators




A            B             Matte




                                   30
Multiply




      고정범위 0 ~ 1를 가진 같은 픽셀을 곱하는 두개의
O = A * 값은 원래의 값보다 항상 더 작은 값을 생성하기 때
        B
        문에 항상 이미지가 어두운 결과를 생산함

                                 31
Screen




A     B      Matte




                     32
Screen




            Screen 이펙트는 빛나는 물체(유리잔과 같은 투명
O = 1 - (1 - A) * (1 표면)위에서 반사되는 성질을 정확하게 모방
                  한 - B)



                                          33
Screen




원본            Screen Operator



                                34
Screen




원본            Screen Operator



                                35
Maximum and Minimum




A            B            A Matte




                                    36
Maximum and Minimum




Maximum            Minimum



                             37
Maximum and Minimum




Foreground       Background    Maximum
  Image            Image


                                         38
In




A   B    A Matte




                   39
In




A in B                B in A
         O = A * Ba

                               40
Out




A   B     A Matte




                    41
Out




A outside of B                      B outside of A
                 O = A * (1 - Ba)

                                                     42
Atop




A    B     A Matte




                     43
Atop




A Atop B                         B Atop A
           O = (A In B) Over B

                                            44
Masks
Mask

 어떤 Operator 효과의 범위를 제한하고자 할 때

 분리된 매트를 사용 = Mask




                                  46
Mask




              Image with saturation(value : 0)
Mask              controlled by the mask




                                                 47
Mask

 어떤 Operator 효과의 범위를 제한하고자 할 때

 분리된 매트를 사용 = Mask

 어떠한 소프트웨어 패키지는 특별한 경우 이미지로써 Mask를 다루기도 하지만 대부

  분은 전체 프레임에 효과를 적용하고 Mask를 사용하여 적당한 영역을 분리시키고 효

  과의 영향을 받지 않은 원본과 Mask 를 합성

 0~1 사이의 range(레인지, 범위) 에서 이미지가 만들어졌다고 일반적으로 가정함으로

  효과의 제한을 위해 Mask를 사용하기 전에 범위를 0 ~ 1로 Clamp 해줘야함




                                                   48
Compositing with Premultiplied Images
Compositing with Premultiplied Images


 합성 Operator 가 원하는 Image Type 을 정확하게 이해하는 것은 매우 중요

 Operator에 따라 Premultiplied Image 를 다루고 있거나 혹은 Matte와 분리해서 가져

  오도록 요구함

 적절한 이미지 타입을 사용하지 않으면 다양한 Artifact 를 경험할 수 있음




                                                             50
Compositing with Premultiplied Images




A foreground element   A background element




                                              51
Compositing with Premultiplied Images




foreground 를 위한 Soft-edge matte



                                          52
Compositing with Premultiplied Images




      Foreground multiplied by the matte




                                           53
Compositing with Premultiplied Images




    합성 시스템에서 모든 image 들이 다 premultiplied 되어 있을 때




                                                   54
Compositing with Premultiplied Images




       모든 이미지가 premultiplied 되어있다고 고려하는 시스템에서,
                                     - matte가 0인 지점에서도 여전히 결과물에 영향을 줌
  background image 위에 premultiplied 하지 않은 image를 위치시켰을 경우
                              - 수학적으로 두개의 이미지를 함께 더한것과 동일
                              - matte 만 갖고 있는 이미지를 합성하는 operator를 이용해서
                              premultiplied image 에 적용한다면 역시 문제가 발생
                                                                        55
Compositing with Premultiplied Images




      background 위에 두번 premultiplied 된 이미지가 있음
              matte 가장자리를 따라 어두운 후광
                            가장자리(edge) 가 너무 밝거나 너무 어두우면 대게
                               premultiply 문제와 관련되었다는 신호

                                                       56
Compositing with Premultiplied Images




      background 위에 두 번 premultiplied 된 이미지가 있음
           보다 일반적인 matte 를 가지고 합성했을때



                            operator 가 지원하는 이미지 type(premultiply 여부) 과
                            완전히 동기화시키더라도, 좀 더 심도 있게 이미지 처리하다
                            보면 artifact 들이 또 생김

                                                                  57
Color Correcting and Combining Premultipied Images




         Premultiplied image

               Image와 Matte 관계에 의존




                                                 58
Color Correcting and Combining Premultipied Images




                                                 59
Color Correcting and Combining Premultipied Images




                                                 60
Color Correcting and Combining Premultipied Images




                                                 61
Color Correcting and Combining Premultipied Images




       Unpremultiplied image




                                                 62
Color Correcting and Combining Premultipied Images




              matte 로 다시 나눈 후에 premultiply



                                                 63
Luminosity and the Image-Matte Relationship

 Alpha 채널 값을 줄임으로써 오브젝트가 결과적으로 더 밝아짐

  –   background 는 foreground element를 관통하여 보여지게 될 것

  –   matte 채널값이 0 으로 줄어들수록 Over대신 Add operator 를 사용한 것처럼 보일것




                    Background 위에 놓기 전에 Premultiplied Foreground image의
                                Matte 채널 값에 0.6을 곱한 이미지

                                                                          64
Luminosity and the Image-Matte Relationship

 이미지의 alpha 채널을 조작하여 이미지와 matte 와의 관계를 수정
   –   Luminosity Operator / Opacity Operator

 많은 시스템이 Addmix Operator를 제공
   –   부분적으로 Transparent Matte 영역에서 Image – Matte관계를 수정하기 위해 Lookup Curve를 제공




               Addmix 를 위한 source foreground image(와 그것의 matte 채널)

                                                                                65
Luminosity and the Image-Matte Relationship




           몇가지 Addmix variations(바리에이션들)



                                              66
Luminosity and the Image-Matte Relationship


 image 들을 서로 layering 할 때, 이미지와 Matte 관계의 선별적인 조작은 어떤 상황이

  되어도 사용

   –   matte 채널을 살짝 수정하여 부분적으로 투명한 경계(edge)의 밝기에 영향을 주는 것도 대중적으로 사용

   (ex : 밝은 background 에 금발 머리카락을 보다 잘 합치도록 할때)




                                                                      67
Morphing
The Matte Image



Warp              Blending



         Over


                             69
Morphing




           70
Morphing




       목적으로 하는 Image 와 Match하기 위해,
Source 이미지가 Warp 되는 것을 보여주는 하나의 시퀀스

                                      71
Morphing




단순히 일정 시간 동안 이 둘을 dissolve
                             72
Morphing




     동일한 프레임에서 나란히 비교한 것 코/주둥이 영역은 좀 더
              빨리 dissolve함 : 아트적인 이유
          (warp 결합지점을 숨기기에도 또한 유용)

                                  73
Q&A
감사합니다

Más contenido relacionado

Destacado

Welcome to keystone the open stack identity service_v1.0.0-20141208-1212
Welcome to keystone the open stack identity service_v1.0.0-20141208-1212Welcome to keystone the open stack identity service_v1.0.0-20141208-1212
Welcome to keystone the open stack identity service_v1.0.0-20141208-1212ymtech
 
스타트업 기자단 공개교육 - 미디어의 환경 변화와 언론인의 역할(명승은 벤처스퀘어 대표)
스타트업 기자단 공개교육 - 미디어의 환경 변화와 언론인의 역할(명승은 벤처스퀘어 대표)스타트업 기자단 공개교육 - 미디어의 환경 변화와 언론인의 역할(명승은 벤처스퀘어 대표)
스타트업 기자단 공개교육 - 미디어의 환경 변화와 언론인의 역할(명승은 벤처스퀘어 대표)VentureSquare
 
Hd sdi 영상분배 증폭기
Hd sdi 영상분배 증폭기Hd sdi 영상분배 증폭기
Hd sdi 영상분배 증폭기Deok kyu Ahn
 
task_analysis_synthesis
task_analysis_synthesistask_analysis_synthesis
task_analysis_synthesisHyunjin Yoo
 
collaborative consumption_번개장터_협력적소비
collaborative consumption_번개장터_협력적소비collaborative consumption_번개장터_협력적소비
collaborative consumption_번개장터_협력적소비Young Seok Jang
 
Mobile security & security testing - Speaker at CSS Serminar
Mobile security & security testing - Speaker at CSS SerminarMobile security & security testing - Speaker at CSS Serminar
Mobile security & security testing - Speaker at CSS SerminarYongjun Park
 
Trust Security Center
Trust Security CenterTrust Security Center
Trust Security CenterPainJake
 
AWS 보안: WAF, AWS Inspector, Config Rules - 임기성 :: 2015 리인벤트 리캡 게이밍
AWS 보안: WAF, AWS Inspector, Config Rules - 임기성 :: 2015 리인벤트 리캡 게이밍AWS 보안: WAF, AWS Inspector, Config Rules - 임기성 :: 2015 리인벤트 리캡 게이밍
AWS 보안: WAF, AWS Inspector, Config Rules - 임기성 :: 2015 리인벤트 리캡 게이밍Amazon Web Services Korea
 
사이버 보안의 이해 Intro to korean cyber security
사이버 보안의 이해 Intro to korean cyber security사이버 보안의 이해 Intro to korean cyber security
사이버 보안의 이해 Intro to korean cyber securityBill Hagestad II
 
20회 오픈업 발표자료 - 04 와디즈
20회 오픈업 발표자료 - 04 와디즈20회 오픈업 발표자료 - 04 와디즈
20회 오픈업 발표자료 - 04 와디즈VentureSquare
 
ApprenticeshipPatterns/Chapter3
ApprenticeshipPatterns/Chapter3ApprenticeshipPatterns/Chapter3
ApprenticeshipPatterns/Chapter3Yoon Hee Hwang
 
Unity3D로 풀3D web mmorpg 만들기
Unity3D로 풀3D web mmorpg 만들기Unity3D로 풀3D web mmorpg 만들기
Unity3D로 풀3D web mmorpg 만들기JP Jung
 
MGS 툴세미나
MGS 툴세미나MGS 툴세미나
MGS 툴세미나Bonex Gu
 
Spring Security
Spring SecuritySpring Security
Spring SecurityETRIBE_STG
 
[Shader study] Lighting Killzone : Shadow Fall - 발표메모(13.10.14)
[Shader study] Lighting Killzone : Shadow Fall - 발표메모(13.10.14)[Shader study] Lighting Killzone : Shadow Fall - 발표메모(13.10.14)
[Shader study] Lighting Killzone : Shadow Fall - 발표메모(13.10.14)해강
 
Giveyourmessgae 파이널
Giveyourmessgae 파이널Giveyourmessgae 파이널
Giveyourmessgae 파이널예슬 이
 
IoT era and convergence security sangsujeon
IoT era and convergence security sangsujeonIoT era and convergence security sangsujeon
IoT era and convergence security sangsujeonSangSu Jeon
 

Destacado (20)

Welcome to keystone the open stack identity service_v1.0.0-20141208-1212
Welcome to keystone the open stack identity service_v1.0.0-20141208-1212Welcome to keystone the open stack identity service_v1.0.0-20141208-1212
Welcome to keystone the open stack identity service_v1.0.0-20141208-1212
 
스타트업 기자단 공개교육 - 미디어의 환경 변화와 언론인의 역할(명승은 벤처스퀘어 대표)
스타트업 기자단 공개교육 - 미디어의 환경 변화와 언론인의 역할(명승은 벤처스퀘어 대표)스타트업 기자단 공개교육 - 미디어의 환경 변화와 언론인의 역할(명승은 벤처스퀘어 대표)
스타트업 기자단 공개교육 - 미디어의 환경 변화와 언론인의 역할(명승은 벤처스퀘어 대표)
 
Hd sdi 영상분배 증폭기
Hd sdi 영상분배 증폭기Hd sdi 영상분배 증폭기
Hd sdi 영상분배 증폭기
 
task_analysis_synthesis
task_analysis_synthesistask_analysis_synthesis
task_analysis_synthesis
 
Greatgatsby
GreatgatsbyGreatgatsby
Greatgatsby
 
collaborative consumption_번개장터_협력적소비
collaborative consumption_번개장터_협력적소비collaborative consumption_번개장터_협력적소비
collaborative consumption_번개장터_협력적소비
 
Mobile security & security testing - Speaker at CSS Serminar
Mobile security & security testing - Speaker at CSS SerminarMobile security & security testing - Speaker at CSS Serminar
Mobile security & security testing - Speaker at CSS Serminar
 
Trust Security Center
Trust Security CenterTrust Security Center
Trust Security Center
 
AWS 보안: WAF, AWS Inspector, Config Rules - 임기성 :: 2015 리인벤트 리캡 게이밍
AWS 보안: WAF, AWS Inspector, Config Rules - 임기성 :: 2015 리인벤트 리캡 게이밍AWS 보안: WAF, AWS Inspector, Config Rules - 임기성 :: 2015 리인벤트 리캡 게이밍
AWS 보안: WAF, AWS Inspector, Config Rules - 임기성 :: 2015 리인벤트 리캡 게이밍
 
사이버 보안의 이해 Intro to korean cyber security
사이버 보안의 이해 Intro to korean cyber security사이버 보안의 이해 Intro to korean cyber security
사이버 보안의 이해 Intro to korean cyber security
 
20회 오픈업 발표자료 - 04 와디즈
20회 오픈업 발표자료 - 04 와디즈20회 오픈업 발표자료 - 04 와디즈
20회 오픈업 발표자료 - 04 와디즈
 
ApprenticeshipPatterns/Chapter3
ApprenticeshipPatterns/Chapter3ApprenticeshipPatterns/Chapter3
ApprenticeshipPatterns/Chapter3
 
Unity3D로 풀3D web mmorpg 만들기
Unity3D로 풀3D web mmorpg 만들기Unity3D로 풀3D web mmorpg 만들기
Unity3D로 풀3D web mmorpg 만들기
 
Sotis 소개
Sotis 소개Sotis 소개
Sotis 소개
 
MGS 툴세미나
MGS 툴세미나MGS 툴세미나
MGS 툴세미나
 
Spring Security
Spring SecuritySpring Security
Spring Security
 
Unity 시작하기
Unity 시작하기Unity 시작하기
Unity 시작하기
 
[Shader study] Lighting Killzone : Shadow Fall - 발표메모(13.10.14)
[Shader study] Lighting Killzone : Shadow Fall - 발표메모(13.10.14)[Shader study] Lighting Killzone : Shadow Fall - 발표메모(13.10.14)
[Shader study] Lighting Killzone : Shadow Fall - 발표메모(13.10.14)
 
Giveyourmessgae 파이널
Giveyourmessgae 파이널Giveyourmessgae 파이널
Giveyourmessgae 파이널
 
IoT era and convergence security sangsujeon
IoT era and convergence security sangsujeonIoT era and convergence security sangsujeon
IoT era and convergence security sangsujeon
 

Más de CARROTCG

20120713 ch13
20120713 ch1320120713 ch13
20120713 ch13CARROTCG
 
20120713 ch12
20120713 ch1220120713 ch12
20120713 ch12CARROTCG
 
Procedural synthesis of geometry
Procedural synthesis of geometryProcedural synthesis of geometry
Procedural synthesis of geometryCARROTCG
 
120427 celluar texture
120427 celluar texture120427 celluar texture
120427 celluar textureCARROTCG
 
Texture Modeling a Procedual Approach Chater 2 : Building Procedural Textures
Texture Modeling a Procedual Approach Chater 2 : Building Procedural TexturesTexture Modeling a Procedual Approach Chater 2 : Building Procedural Textures
Texture Modeling a Procedual Approach Chater 2 : Building Procedural TexturesCARROTCG
 
Practical methods for texture design web
Practical methods for texture design webPractical methods for texture design web
Practical methods for texture design webCARROTCG
 
Volumetric cloud modeling with implicit functions web
Volumetric cloud modeling with implicit functions webVolumetric cloud modeling with implicit functions web
Volumetric cloud modeling with implicit functions webCARROTCG
 
Texture Modeling a Procedual Approach #01
Texture Modeling a Procedual Approach #01Texture Modeling a Procedual Approach #01
Texture Modeling a Procedual Approach #01CARROTCG
 
120216 ch 12_creating_elements
120216 ch 12_creating_elements120216 ch 12_creating_elements
120216 ch 12_creating_elementsCARROTCG
 
120119 ch 7_time_and_temporal_manipulations
120119 ch 7_time_and_temporal_manipulations120119 ch 7_time_and_temporal_manipulations
120119 ch 7_time_and_temporal_manipulationsCARROTCG
 
120106 ch 6_matte_creation_and_manipulation_web
120106 ch 6_matte_creation_and_manipulation_web120106 ch 6_matte_creation_and_manipulation_web
120106 ch 6_matte_creation_and_manipulation_webCARROTCG
 
The Art and Science of Digital Compositing Chapter 1,2
The Art and Science of Digital Compositing Chapter 1,2The Art and Science of Digital Compositing Chapter 1,2
The Art and Science of Digital Compositing Chapter 1,2CARROTCG
 

Más de CARROTCG (15)

20120921
2012092120120921
20120921
 
20120824
2012082420120824
20120824
 
20120810
2012081020120810
20120810
 
20120713 ch13
20120713 ch1320120713 ch13
20120713 ch13
 
20120713 ch12
20120713 ch1220120713 ch12
20120713 ch12
 
Procedural synthesis of geometry
Procedural synthesis of geometryProcedural synthesis of geometry
Procedural synthesis of geometry
 
120427 celluar texture
120427 celluar texture120427 celluar texture
120427 celluar texture
 
Texture Modeling a Procedual Approach Chater 2 : Building Procedural Textures
Texture Modeling a Procedual Approach Chater 2 : Building Procedural TexturesTexture Modeling a Procedual Approach Chater 2 : Building Procedural Textures
Texture Modeling a Procedual Approach Chater 2 : Building Procedural Textures
 
Practical methods for texture design web
Practical methods for texture design webPractical methods for texture design web
Practical methods for texture design web
 
Volumetric cloud modeling with implicit functions web
Volumetric cloud modeling with implicit functions webVolumetric cloud modeling with implicit functions web
Volumetric cloud modeling with implicit functions web
 
Texture Modeling a Procedual Approach #01
Texture Modeling a Procedual Approach #01Texture Modeling a Procedual Approach #01
Texture Modeling a Procedual Approach #01
 
120216 ch 12_creating_elements
120216 ch 12_creating_elements120216 ch 12_creating_elements
120216 ch 12_creating_elements
 
120119 ch 7_time_and_temporal_manipulations
120119 ch 7_time_and_temporal_manipulations120119 ch 7_time_and_temporal_manipulations
120119 ch 7_time_and_temporal_manipulations
 
120106 ch 6_matte_creation_and_manipulation_web
120106 ch 6_matte_creation_and_manipulation_web120106 ch 6_matte_creation_and_manipulation_web
120106 ch 6_matte_creation_and_manipulation_web
 
The Art and Science of Digital Compositing Chapter 1,2
The Art and Science of Digital Compositing Chapter 1,2The Art and Science of Digital Compositing Chapter 1,2
The Art and Science of Digital Compositing Chapter 1,2
 

120106 ch 5_basic image compositing_re

  • 1. The Art and Science of Digital Compositing 김정근
  • 2. Chapter 5 Basic Image Compositing
  • 3. Agenda  Multisource Operators  The Matte Image  The Integrated Matte Channel  Additional Operators  Masks  Compositing with Premultiplied Images  Morphing 3
  • 8. Subtract  Subtract 는 대칭되는 Operator 가 아님 (B + A) equals (A + B), but (A - B) does lot equal (B - A). 8
  • 10. Subtract  Subtract 는 대칭되는 Operator 가 아님 (B + A) equals (A + B), but (A - B) does lot equal (B - A)  모든 0 이하 또는 음수 값을 클립  Subtract Operator 의 절대값을 반환하도록 지정하는 것은 유용(Chapter 6)  절대값을 반환한 Subtract Operator은 대칭 연산 10
  • 11. Subtract O = |A – B| 11
  • 12. Mix 이미지 B의 25 %와 이미지 A의 75 %를 혼합의 결과 소스이미지는 처음에는 이미지 A의 100%를 O = (MV * A) + [(1 - 표현하기B) MV) * 위해서 단순히 mix 값을 애니메이트 한 뒤 마지막으로는 이미지 B의 100%를 표현 MV = mix value 12
  • 16. The Matte Image Matte Mask Alpha Key 16
  • 17. The Matte Image 배경을 들어나 보이기 위해 전경의 섹션을 Matte Out Mask 어떤 영역에 영향을 주지 않기 위해 3번째 이미지로 off 17
  • 18. The Matte Image Matte Mask 컨트롤할 때 이미지를 참고하는 것 혹은 오퍼레이션에서 어떤 특정 파라미터들을 Alpha 용도(ex : Color Correction)로 사용 제한하는 Key 비디오 세계에서 일반적인 다른 용어 18
  • 19. The Matte Image  일반적인 이미지와 데이터에 관해서는 다르지 않음 – 일반적인 이미지와 같은 방식으로 조작이 가능  Scene의 시각적 표현을 제공 합성작업을 제어하는데 사용되는 유틸리티 이미지로써 사용  일반적으로 Single Channel 이며 흑백이미지 – 세 개의 별도 채널이 필요치 않으며 지정된 컬러로 주어진 픽셀에 대한 투명도는 범위 0~1에서 하나의 숫자값으로 표현  많은 시스템 파일 포맷이 싱글 채널이미지를 서포트 / 단순히 RGB 이미지의 세채널에 동일 한 정보의 사본을 배치함 – 중복되며 디스크 공간을 차지  매트 이미지가 네번째 채널 이미지의 파트일때 매트 채널 또는 알파채널 19
  • 20. Keymix A B Matte 20
  • 21. Keymix Mix operator 와 비슷하지만 고정된 Mix 값 대신 매 O = (A * M) + [(1 - M) * B] 트이미지에 의해 결정되어 각 픽셀에 대한 구체적인 혼합 값이 있음 21
  • 23. The Integrated Matte Channel R channel G channel B channel Color * alpha A channel 23
  • 24. The Integrated Matte Channel Premultiplied Image 알파채널로 멀티플라이된 RGB채널 이미지 tga, png, iff 24
  • 25. The Integrated Matte Channel * Premultiplied Image 25
  • 26. The Integrated Matte Channel 어떠한 이미지 A는 Argb = The RGB channels only. Aa = The alpha, or matte channel, only. A = All the channels (be there three or more) of the image M = matte channel을 독점적으로 사용되는 이미지 (Grayscale, Single Channel) Orgb = Argb + Brgb or Oa = Aa + Ba 26
  • 27. Over - * * + = Keymix 와 유사함 O = (A * M) + [(1 - M) * B] 단 통합매트 채널을 활용하여 단순화함(4 채널) 27
  • 28. Over 보조 알파채널로 완벽하게 Premultiplied 이미지가 됐을때 Over 의 방정식 Orgb = Argb + [ (1 - Aa) * Brgb ] 출력이미지의 매트 채널의 방정식 Oa = Aa + [ (1 - Aa) * Ba ] 4 채널에 대한 단순 방정식 Orgba = Argba + [ (1 - Aa) * Brgba ] 전경에 대한 Premultiplied 이미지임을 가정하기 때 문에 이것은 잘 작동함 Premultiplied 가 없을때나 다른 연산자를 함께 작 업하는 경우에 혼란이 있을수 있음 28
  • 31. Multiply 고정범위 0 ~ 1를 가진 같은 픽셀을 곱하는 두개의 O = A * 값은 원래의 값보다 항상 더 작은 값을 생성하기 때 B 문에 항상 이미지가 어두운 결과를 생산함 31
  • 32. Screen A B Matte 32
  • 33. Screen Screen 이펙트는 빛나는 물체(유리잔과 같은 투명 O = 1 - (1 - A) * (1 표면)위에서 반사되는 성질을 정확하게 모방 한 - B) 33
  • 34. Screen 원본 Screen Operator 34
  • 35. Screen 원본 Screen Operator 35
  • 36. Maximum and Minimum A B A Matte 36
  • 38. Maximum and Minimum Foreground Background Maximum Image Image 38
  • 39. In A B A Matte 39
  • 40. In A in B B in A O = A * Ba 40
  • 41. Out A B A Matte 41
  • 42. Out A outside of B B outside of A O = A * (1 - Ba) 42
  • 43. Atop A B A Matte 43
  • 44. Atop A Atop B B Atop A O = (A In B) Over B 44
  • 45. Masks
  • 46. Mask  어떤 Operator 효과의 범위를 제한하고자 할 때  분리된 매트를 사용 = Mask 46
  • 47. Mask Image with saturation(value : 0) Mask controlled by the mask 47
  • 48. Mask  어떤 Operator 효과의 범위를 제한하고자 할 때  분리된 매트를 사용 = Mask  어떠한 소프트웨어 패키지는 특별한 경우 이미지로써 Mask를 다루기도 하지만 대부 분은 전체 프레임에 효과를 적용하고 Mask를 사용하여 적당한 영역을 분리시키고 효 과의 영향을 받지 않은 원본과 Mask 를 합성  0~1 사이의 range(레인지, 범위) 에서 이미지가 만들어졌다고 일반적으로 가정함으로 효과의 제한을 위해 Mask를 사용하기 전에 범위를 0 ~ 1로 Clamp 해줘야함 48
  • 50. Compositing with Premultiplied Images  합성 Operator 가 원하는 Image Type 을 정확하게 이해하는 것은 매우 중요  Operator에 따라 Premultiplied Image 를 다루고 있거나 혹은 Matte와 분리해서 가져 오도록 요구함  적절한 이미지 타입을 사용하지 않으면 다양한 Artifact 를 경험할 수 있음 50
  • 51. Compositing with Premultiplied Images A foreground element A background element 51
  • 52. Compositing with Premultiplied Images foreground 를 위한 Soft-edge matte 52
  • 53. Compositing with Premultiplied Images Foreground multiplied by the matte 53
  • 54. Compositing with Premultiplied Images 합성 시스템에서 모든 image 들이 다 premultiplied 되어 있을 때 54
  • 55. Compositing with Premultiplied Images 모든 이미지가 premultiplied 되어있다고 고려하는 시스템에서, - matte가 0인 지점에서도 여전히 결과물에 영향을 줌 background image 위에 premultiplied 하지 않은 image를 위치시켰을 경우 - 수학적으로 두개의 이미지를 함께 더한것과 동일 - matte 만 갖고 있는 이미지를 합성하는 operator를 이용해서 premultiplied image 에 적용한다면 역시 문제가 발생 55
  • 56. Compositing with Premultiplied Images background 위에 두번 premultiplied 된 이미지가 있음 matte 가장자리를 따라 어두운 후광 가장자리(edge) 가 너무 밝거나 너무 어두우면 대게 premultiply 문제와 관련되었다는 신호 56
  • 57. Compositing with Premultiplied Images background 위에 두 번 premultiplied 된 이미지가 있음 보다 일반적인 matte 를 가지고 합성했을때 operator 가 지원하는 이미지 type(premultiply 여부) 과 완전히 동기화시키더라도, 좀 더 심도 있게 이미지 처리하다 보면 artifact 들이 또 생김 57
  • 58. Color Correcting and Combining Premultipied Images Premultiplied image Image와 Matte 관계에 의존 58
  • 59. Color Correcting and Combining Premultipied Images 59
  • 60. Color Correcting and Combining Premultipied Images 60
  • 61. Color Correcting and Combining Premultipied Images 61
  • 62. Color Correcting and Combining Premultipied Images Unpremultiplied image 62
  • 63. Color Correcting and Combining Premultipied Images matte 로 다시 나눈 후에 premultiply 63
  • 64. Luminosity and the Image-Matte Relationship  Alpha 채널 값을 줄임으로써 오브젝트가 결과적으로 더 밝아짐 – background 는 foreground element를 관통하여 보여지게 될 것 – matte 채널값이 0 으로 줄어들수록 Over대신 Add operator 를 사용한 것처럼 보일것 Background 위에 놓기 전에 Premultiplied Foreground image의 Matte 채널 값에 0.6을 곱한 이미지 64
  • 65. Luminosity and the Image-Matte Relationship  이미지의 alpha 채널을 조작하여 이미지와 matte 와의 관계를 수정 – Luminosity Operator / Opacity Operator  많은 시스템이 Addmix Operator를 제공 – 부분적으로 Transparent Matte 영역에서 Image – Matte관계를 수정하기 위해 Lookup Curve를 제공 Addmix 를 위한 source foreground image(와 그것의 matte 채널) 65
  • 66. Luminosity and the Image-Matte Relationship 몇가지 Addmix variations(바리에이션들) 66
  • 67. Luminosity and the Image-Matte Relationship  image 들을 서로 layering 할 때, 이미지와 Matte 관계의 선별적인 조작은 어떤 상황이 되어도 사용 – matte 채널을 살짝 수정하여 부분적으로 투명한 경계(edge)의 밝기에 영향을 주는 것도 대중적으로 사용 (ex : 밝은 background 에 금발 머리카락을 보다 잘 합치도록 할때) 67
  • 69. The Matte Image Warp Blending Over 69
  • 70. Morphing 70
  • 71. Morphing 목적으로 하는 Image 와 Match하기 위해, Source 이미지가 Warp 되는 것을 보여주는 하나의 시퀀스 71
  • 72. Morphing 단순히 일정 시간 동안 이 둘을 dissolve 72
  • 73. Morphing 동일한 프레임에서 나란히 비교한 것 코/주둥이 영역은 좀 더 빨리 dissolve함 : 아트적인 이유 (warp 결합지점을 숨기기에도 또한 유용) 73
  • 74. Q&A