원시데이터 수집 시스템
선정목록으로

KALMUS: tools for color analysis of films

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Yida Chen — Bucknell University
  2. Eric Faden — Bucknell University
  3. Nathan C. Ryan — Bucknell University
DOI
10.21105/joss.03156
저널
The Journal of Open Source Software
발행년도
2021
발행기관
Open Journals
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.21105/joss.03156
토픽
Color Science and Applications
OpenAlex ID
W3163661023

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

KALMUS is a Python package for the computational analysis of colors in films. It provides quantitative tools to study and compare the use of film color. This package serves two purposes: (1) various ways to measure, calculate and compare a film's colors and (2) various ways to visualize a film's color. We have named the software KALMUS in homage to Natalie Kalmus (1882Kalmus ( -1965)), a Technicolor Director who oversaw the color palettes of nearly 300 Hollywood feature films.

본문 13,473자

본문 펼치기
# KALMUS: tools for color analysis of films Yida Chen <sup>1</sup> , Eric Faden <sup>1</sup> , and Nathan C. Ryan <sup>1</sup> 1 Bucknell University DOI: [10.21105/joss.03156](https://doi.org/10.21105/joss.03156) Software - [Review](https://github.com/openjournals/joss-reviews/issues/3156) - [Repository](https://github.com/KALMUS-Color-Toolkit/KALMUS) - [Archive](https://doi.org/10.5281/zenodo.4765745) Editor: George K. [Thiruvathukal](https://gkt.cs.luc.edu) Reviewers: - [@thomakra](https://github.com/thomakra) - [@elektrobohemian](https://github.com/elektrobohemian) Submitted: 19 January 2021 Published: 18 May 2021 License Authors of papers retain copyright and release the work under a Creative Commons Attribution 4.0 International License (CC [BY](http://creativecommons.org/licenses/by/4.0/) 4.0). ## Summary KALMUS is a Python package for the computational analysis of colors in films. It provides quantitative tools to study and compare the use of film color. This package serves two purposes: (1) various ways to measure, calculate and compare a film’s colors and (2) various ways to visualize a film’s color. We have named the software KALMUS in homage to Natalie Kalmus (1882 - 1965), a Technicolor Director who oversaw the color palettes of nearly 300 Hollywood feature films. ## Statement of Need “Colors are elusive” Barbara Flueckiger (2017) “Color is in so many ways uncontainable.” Josh Yumibe (2012) The epigraphs above (each from the introduction of recent research on cinematic color) all acknowledge the challenges of studying cinematic color aesthetics. Filmmakers, cinematographers, production designers, and colorists spend significant money, time, and labor deciding a film’s color palette before, during, and after production. Given this obsessive attention, why is color so “elusive” to study and analyze? Three reasons emerge: (1) film color remains subtle and almost subliminal by design; (2) we read color subjectively and are often influenced by cultural or even historic circumstances; (3) films are kinetic with the image (and colors) constantly moving. Color might be relatively easy to observe in a single frame, but tracking the color palette across an entire film proves daunting. Moreover, comparing one film’s palette to another proves especially challenging due to the accumulation of data needed to make a meaningful comparison. See Stutz (2016) for an overview of both the history and the state-of-the-art of the study of colors in film. Recently, several digital tools have emerged that analyze a film’s color. The ability to capture film stills from DVD or streaming sources and analyze the frame’s palette in off-the-shelf tools like [Adobe](http://color.adobe.com) Color or Adobe Photoshop provide insights into individual frames. Additionally, many open-source projects provide implementations of state-of-the-art computer vision algorithms applied to moving images. Some, such as the Distance Viewing Toolkit (Arnold & Tilton, 2020), are very general and handle several aspects of a moving image at once (sound, color, camera angle, etc.). Others, such as VIAN (Halter et al., 2019), allow for a “closer,” more interactive distant viewing. Chen et al., (2021). KALMUS: tools for color analysis of films. _Journal_ _of_ _Open_ _Source_ _Software_, 6(61), 3156. [https://doi.org/10.21105/joss.](https://doi.org/10.21105/joss.03156) 1 [03156](https://doi.org/10.21105/joss.03156) KALMUS is built around a visualization of films known as movie barcodes; it produces an overall color palette “snapshot” of a film. Artists like Jeffrey Moser or programmers such as [Charlie Clark, generate movie barcodes by reducing each film frame to a single color](https://thecolorsofmotion.com/about) <sup>1</sup> and then stitching these colors into a mosaic. See Figure 1 for examples of movie barcodes generated by KALMUS. Existing movie barcode software is inadequate for studying films in a quantitative way. While such software provides a fascinating visual “overview” of a film’s color palette, it, unlike KALMUS, focuses on visualization rather than providing meaningful analytical data. KALMUS generates barcodes but also generates a wealth of data related to color and the kinds of barcode and data that can be generated are fairly customizable so that users can carry out their own analyses. Figure 1: Movie barcodes generated by KALMUS. KALMUS allows for the analysis of a film’s color by: 1. Providing an interface that takes in either a video file or a JSON file (a sample JSON file can be found [here).](https://github.com/KALMUS-Color-Toolkit/KALMUS/blob/master/kalmus/data/mission_impossible_Bright_Whole_frame_Color.json) 2. Allowing for the computation of a frame’s color in a number of ways (dominant, median, etc). 3. Allowing for the computation of a film’s color in a number of ways. 4. Providing implementations of ways to compare colors of two films. 5. Providing implementations of ways to visualize the color of a film. 6. Allowing the user to download color data as a CSV or JSON file. See Figure 2 for an explanation of KALMUS’s user interface. 1In OpenCV (Itseez, 2015), for example, if a frame is decimated to a single pixel, its color is determined by area interpolation, a weighted average of the RGB-values of the pixels. Chen et al., (2021). KALMUS: tools for color analysis of films. _Journal_ _of_ _Open_ _Source_ _Software_, 6(61), 3156. [https://doi.org/10.21105/joss.](https://doi.org/10.21105/joss.03156) 2 [03156](https://doi.org/10.21105/joss.03156) Figure 2: Image A shows barcodes for a single film in which the color of a frame was calculated in two ways: the top one uses the frame’s brightest color and the bottom one uses the frame’s median color. Image B shows the interface for generating a barcode: one can process a film in parallel, choose a sampling rate, and choose a method for determining a frame’s color. Image C is the result of selecting a pixel in a barcode to give a user an idea of where in the film they are. Image D is a table of similarity metrics between the two barcodes. Image E is an interactive 3D plot of the RGB values in one of the barcodes. KALMUS allows users to understand a film’s color palette and compare that palette to other films. See Table 1 for options on what parts of the frame a user might want to analyze and the various metrics a user can use to determine the color of a frame. See Table 2 for information on how film colors can be compared. Potentially, films from a certain time period or a particular genre might be aggregated to see if there are common color palettes <sup>2</sup> . While film studies as a discipline has long depended on qualitative analysis, KALMUS provides a straightforward quantitative tool that can supplement the reading of a film. For example, in Adams et al. (in preparation) KALMUS is used to study color trends in Hollywood movies from 1990 to 2015. In a class taught by the second author, students used KALMUS to explore how a film’s color palette signaled narrative shifts and introduced significant characters. Mean Median Mode TD WD BR BP Whole frame Yes Yes Yes Yes Yes Yes Yes High contrast region Yes Yes Yes Yes Yes Yes No Low contrast region Yes Yes Yes Yes Yes Yes No Foreground Yes Yes Yes Yes Yes Yes No Background Yes Yes Yes Yes Yes Yes No 2We point out users should be aware of the fact that different color gamuts used in digitizing films may affect a film’s original color palette. KALMUS is designed to use the broadcast color gamut called REC 709. Chen et al., (2021). KALMUS: tools for color analysis of films. _Journal_ _of_ _Open_ _Source_ _Software_, 6(61), 3156. [https://doi.org/10.21105/joss.](https://doi.org/10.21105/joss.03156) 3 [03156](https://doi.org/10.21105/joss.03156) Table 1: A summary of the various metrics one can use to determine the color of a frame and what parts of a frame will be used to calculate the color of the frame. The first three metrics (mean, median and mode) are the corresponding statistic over all the colors in the part of the frame being analyzed. The next two metrics, top dominant (TD) and weighted dominant (WD) are determined by applying a clustering algorithm on the set of all the colors in the part of the frame being analyzed and, in the case of the top dominant metric, the color is determined by the color of the largest cluster and, in the case of the weighted dominant metric, the color is determined by the average color of the clusters, weighted by the sizes of the clusters. The last two metrics assign the color of the region being analyzed to be the color of the brightest region (BR) or the brightest pixel (BP) in the region. Comparison metric Range References Normalized root mean square error 0 least similar, 1 most similar Wang et al. (2004) Structural similarity index 0 least similar, 1 most similar Wang et al. (2004) Cross correlation -1 anti-similar, 1 most similar Avants et al. (2008) Local cross correlation -1 anti-similar, 1 most similar Avants et al. (2008) Needleman–Wunsch 0 least similar, 1 most similar Needleman & Wunsch (1970) Adams et al. (in preparation) Smith–Waterman 0 least similar, 1 most similar Smith et al. (1981) Adams et al. (in preparation) Table 2: A summary of the various metrics included in KALMUS to compare the overall color of two films. As of version 1.3.5, the software is stable. Because the audience of potential users of KALMUS is broad, we provide access to the KALMUS package via the GUI described above but also point out that the package can be installed and used in any Python environment. ## Acknowledgments The authors wish to thank the Mellon Foundation, the Dalal Family Foundation, and the Bucknell University Humanities Center for their support on this project. ## References Adams, M., Chen, Y., Faden, E., Ryan, N. C., & Zhang, H. (in preparation). _The_ _changing_ _colors_ _of_ _Hollywood_ _films_ . Arnold, T., & Tilton, L. (2020). Distant Viewing Toolkit: A Python Package for the Analysis of Visual Culture. _Journal_ _of_ _Open_ _Source_ _Software_, _5_ (45), 1800. [https://doi.org/10.](https://doi.org/10.21105/joss.01800) [21105/joss.01800](https://doi.org/10.21105/joss.01800) Avants, B. B., Epstein, C. L., Grossman, M., & Gee, J. C. (2008). Symmetric diffeomorphic image registration with cross-correlation: Evaluating automated labeling of elderly and neurodegenerative brain. _Medical Image Analysis_, _12_ (1), 26–41. [https://doi.org/10.1016/](https://doi.org/10.1016/j.media.2007.06.004) [j.media.2007.06.004](https://doi.org/10.1016/j.media.2007.06.004) Flueckiger, B. (2017). A digital humanities approach to film colors. _Moving_ _Image:_ _The_ _Journal of the Association of Moving Image Archivists_, _17_ (2), 71–94. [https://doi.org/10.](https://doi.org/10.5749/movingimage.17.2.0071) [5749/movingimage.17.2.0071](https://doi.org/10.5749/movingimage.17.2.0071) Flueckiger, B., & Halter, G. (2020). Methods and advanced tools for the analysis of film colors in digital humanities. _Digital Humanities Quarterly:_ _Special Issue Digital Humanities&Film_ _Studies._ _Analyzing_ _the_ _Modalities_ _of_ _Moving_ _Images_, _14_ (4). Chen et al., (2021). KALMUS: tools for color analysis of films. _Journal_ _of_ _Open_ _Source_ _Software_, 6(61), 3156. [https://doi.org/10.21105/joss.](https://doi.org/10.21105/joss.03156) 4 [03156](https://doi.org/10.21105/joss.03156) Halter, G., Ballester-Ripoll, R., Flueckiger, B., & Pajarola, R. (2019). VIAN: A visual anno tation tool for film analysis. _Computer Graphics Forum_, _38_, 119–129. [https://doi.org/10.](https://doi.org/10.1111/cgf.13676) [1111/cgf.13676](https://doi.org/10.1111/cgf.13676) Itseez. (2015). _Open_ _source_ _computer_ _vision_ _library_ . [https://github.com/itseez/opencv.](https://github.com/itseez/opencv) Needleman, S. B., & Wunsch, C. D. (1970). A general method applicable to the search for similarities in the amino acid sequence of two proteins. _Journal_ _of_ _Molecular_ _Biology_, _48_ (3), 443–453. [https://doi.org/10.1016/b978-0-12-131200-8.50031-9](https://doi.org/10.1016/b978-0-12-131200-8.50031-9) Smith, T. F., Waterman, M. S., & others. (1981). Identification of common molecular subsequences. _Journal_ _of_ _Molecular_ _Biology_, _147_ (1), 195–197. [https://doi.org/10.1016/](https://doi.org/10.1016/0022-2836%0x2881%0x2990087-5) [0022-2836(81)90087-5](https://doi.org/10.1016/0022-2836%0x2881%0x2990087-5) Stutz, O. K. (2016). _Algorithmische farbfilmästhetik:_ _Historische sowie experimentell-digitale_ _notations-und_ _vislualisierungssysteme_ _des_ _farbfilms_ _im_ _zeichen_ _der_ _igital_ _humanities_ _2.0_ _und_ _3.0_ [PhD thesis]. Universität Zürich. Wang, Z., Bovik, A. C., Sheikh, H. R., & Simoncelli, E. P. (2004). Image quality assessment: From error visibility to structural similarity. _IEEE Transactions on Image Processing_, _13_ (4), 600–612. [https://doi.org/10.1109/tip.2003.819861](https://doi.org/10.1109/tip.2003.819861) Yumibe, J. (2012). _Moving_ _color:_ _Early_ _film,_ _mass_ _culture,_ _modernism_ . Rutgers University Press. [https://doi.org/10.1080/17460654.2013.837593](https://doi.org/10.1080/17460654.2013.837593) Chen et al., (2021). KALMUS: tools for color analysis of films. _Journal_ _of_ _Open_ _Source_ _Software_, 6(61), 3156. [https://doi.org/10.21105/joss.](https://doi.org/10.21105/joss.03156) 5 [03156](https://doi.org/10.21105/joss.03156)

섹션 본문 14문단 · 6,795자

(제목 없음)

1KALMUS is a Python package for the computational analysis of colors in films. It provides quantitative tools to study and compare the use of film color. This package serves two purposes: (1) various ways to measure, calculate and compare a film's colors and (2) various ways to visualize a film's color. We have named the software KALMUS in homage to Natalie Kalmus (1882Kalmus ( -1965, a Technicolor Director who oversaw the color palettes of nearly 300 Hollywood feature films.

Statement of Need

2"Colors are elusive" Barbara Flueckiger (2017) "Color is in so many ways uncontainable."

3Josh Yumibe (2012) The epigraphs above (each from the introduction of recent research on cinematic color) all acknowledge the challenges of studying cinematic color aesthetics. Filmmakers, cinematographers, production designers, and colorists spend significant money, time, and labor deciding a film's color palette before, during, and after production. Given this obsessive attention, why is color so "elusive" to study and analyze? Three reasons emerge: (1) film color remains subtle and almost subliminal by design; (2) we read color subjectively and are often influenced by cultural or even historic circumstances; (3) films are kinetic with the image (and colors) constantly moving. Color might be relatively easy to observe in a single frame, but tracking the color palette across an entire film proves daunting. Moreover, comparing one film's palette to another proves especially challenging due to the accumulation of data needed to make a meaningful comparison. See Stutz (2016) for an overview of both the history and the state-of-the-art of the study of colors in film.

4Recently, several digital tools have emerged that analyze a film's color. The ability to capture film stills from DVD or streaming sources and analyze the frame's palette in off-the-shelf tools like Adobe Color or Adobe Photoshop provide insights into individual frames. Additionally, many open-source projects provide implementations of state-of-the-art computer vision algorithms applied to moving images. Some, such as the Distance Viewing Toolkit (Arnold & Tilton, 2020), are very general and handle several aspects of a moving image at once (sound, color, camera angle, etc.). Others, such as VIAN (Halter et al., 2019), allow for a "closer," more interactive distant viewing.

51 KALMUS is built around a visualization of films known as movie barcodes; it produces an overall color palette "snapshot" of a film. Artists like Jeffrey Moser or programmers such as Charlie Clark, generate movie barcodes by reducing each film frame to a single color 1 and then stitching these colors into a mosaic. See Figure 1 for examples of movie barcodes generated by KALMUS. Existing movie barcode software is inadequate for studying films in a quantitative way. While such software provides a fascinating visual "overview" of a film's color palette, it, unlike KALMUS, focuses on visualization rather than providing meaningful analytical data. KALMUS generates barcodes but also generates a wealth of data related to color and the kinds of barcode and data that can be generated are fairly customizable so that users can carry out their own analyses. KALMUS allows for the analysis of a film's color by:

61. Providing an interface that takes in either a video file or a JSON file (a sample JSON file can be found here).

72. Allowing for the computation of a frame's color in a number of ways (dominant, median, etc).

83. Allowing for the computation of a film's color in a number of ways.

94. Providing implementations of ways to compare colors of two films.

105. Providing implementations of ways to visualize the color of a film.

116. Allowing the user to download color data as a CSV or JSON file. See Figure 2 for an explanation of KALMUS's user interface.

12Figure 2: Image A shows barcodes for a single film in which the color of a frame was calculated in two ways: the top one uses the frame's brightest color and the bottom one uses the frame's median color. Image B shows the interface for generating a barcode: one can process a film in parallel, choose a sampling rate, and choose a method for determining a frame's color. Image C is the result of selecting a pixel in a barcode to give a user an idea of where in the film they are. Image D is a table of similarity metrics between the two barcodes. Image E is an interactive 3D plot of the RGB values in one of the barcodes.

13KALMUS allows users to understand a film's color palette and compare that palette to other films. See Table 1 for options on what parts of the frame a user might want to analyze and the various metrics a user can use to determine the color of a frame. See Table 2 for information on how film colors can be compared. Potentially, films from a certain time period or a particular genre might be aggregated to see if there are common color palettes 2 . While film studies as a discipline has long depended on qualitative analysis, KALMUS provides a straightforward quantitative tool that can supplement the reading of a film. For example, in Adams et al. (in preparation) KALMUS is used to study color trends in Hollywood movies from 1990 to 2015. In a class taught by the second author, students used KALMUS to explore how a film's color palette signaled narrative shifts and introduced significant characters. We point out users should be aware of the fact that different color gamuts used in digitizing films may affect a film's original color palette. KALMUS is designed to use the broadcast color gamut called REC 709. Table 1: A summary of the various metrics one can use to determine the color of a frame and what parts of a frame will be used to calculate the color of the frame. The first three metrics (mean, median and mode) are the corresponding statistic over all the colors in the part of the frame being analyzed. The next two metrics, top dominant (TD) and weighted dominant (WD) are determined by applying a clustering algorithm on the set of all the colors in the part of the frame being analyzed and, in the case of the top dominant metric, the color is determined by the color of the largest cluster and, in the case of the weighted dominant metric, the color is determined by the average color of the clusters, weighted by the sizes of the clusters. The last two metrics assign the color of the region being analyzed to be the color of the brightest region (BR) or the brightest pixel (BP) in the region. Table 2: A summary of the various metrics included in KALMUS to compare the overall color of two films.

14As of version 1.3.5, the software is stable. Because the audience of potential users of KALMUS is broad, we provide access to the KALMUS package via the GUI described above but also point out that the package can be installed and used in any Python environment.

참고문헌 10건

  1. Symmetric diffeomorphic image registration with cross-correlation: Evaluating automated labeling of elderly and neurodegenerative brain Medical Image Analysis · Elsevier BV · 2007 10.1016/j.media.2007.06.004
  2. Moving color: early film, mass culture, modernism Early Popular Visual Culture · Taylor & Francis · 2013 10.1080/17460654.2013.837593
  3. A general method applicable to the search for similarities in the amino acid sequence of two proteins Journal of Molecular Biology · Elsevier BV · 1970 10.1016/0022-2836(70)90057-4
  4. Identification of common molecular subsequences Journal of Molecular Biology · Elsevier BV · 1981 10.1016/0022-2836(81)90087-5
  5. Image quality assessment: from error visibility to structural similarity IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2004 10.1109/tip.2003.819861
  6. A General Method Applicable to the Search for Similarities in the Amino Acid Sequence of Two Proteins Molecular Biology · Pleiades Publishing · 1989 10.1016/b978-0-12-131200-8.50031-9
  7. VIAN: A Visual Annotation Tool for Film Analysis Computer Graphics Forum · Wiley · 2019 10.1111/cgf.13676
  8. Distant Viewing Toolkit: A Python Package for the Analysis of Visual Culture The Journal of Open Source Software · Open Journals · 2020 10.21105/joss.01800
  9. Methods and advanced tools for the analysis of film colors in digital humanities Zurich Open Repository and Archive (University of Zurich) · University of Zurich · 2020 10.5167/uzh-197994
  10. A Digital Humanities Approach to Film Colors The Moving Image The Journal of the Association of Moving Image Archivists · University of Minnesota Press · 2017 10.5749/movingimage.17.2.0071