Transition Based on Histogram Properties

DOI : 10.17577/IJERTV6IS100076

Download Full-Text PDF Cite this Publication

  • Open Access
  • Total Downloads : 142
  • Authors : A Peter Hudson, Giridhar N R, Hari Venkata Deepak S, Dr. Jharna Majumdar
  • Paper ID : IJERTV6IS100076
  • Volume & Issue : Volume 06, Issue 10 (October 2017)
  • DOI : http://dx.doi.org/10.17577/IJERTV6IS100076
  • Published (First Online): 17-10-2017
  • ISSN (Online) : 2278-0181
  • Publisher Name : IJERT
  • License: Creative Commons License This work is licensed under a Creative Commons Attribution 4.0 International License

Text Only Version

Transition Based on Histogram Properties

Giridhar N R1, Hari Venkata Deepak S1, Dr. Jharna Majumdar2, 3

A Peter Hudson1,

1BE Student, Dept. of Computer Science & Engg.,

2DEAN R&D Prof.

Head Dept. of M Tech Computer Science &Engg.,

3Head, Center for Robotics Research Nitte Meenakshi Institute of Technology, Yelahanka, Bangalore 560 64

Abstract: – Shot transition in a video refers to how the shot changes. Shot transition is classified as abrupt and gradual transitions. To detect these transitions, various methods have been proposed, which are discussed in the literature survey. This paper deals only with gradual transition, i.e. Dissolve, Fade & Wipe. With the help of Histogram properties like mean, contrast, entropy, skewness, kurtosis and visibility, the authors try to individuate each gradual transition.

Key words: – Shot transition, Shot detection, Histogram properties.

  1. INTRODUCTION

    Video is a sequence of interlinked images. A shot in a digital video sequence is defined as a set of images (frames) from a single camera i.e. a shot is a result of uninterrupted camera work. Shot change detection also known as shot transition is the procedure for identifying changes in the scene content of a video sequence. There are mainly two transitions between shots, abrupt shot cut, and gradual transition. Gradual transitions are Fade, Wipe, and Dissolve.

    An image histogram is the graphical representation of frequency count of the pixels in a digital image. Based on the graphical representation certain properties called statistical properties/histogram properties are derived. These properties are used to individuate the gradual transitions, fade, wipe and dissolve.

  2. LITERATURE SURVEY

    Salim Chavan, Sadik Fanan, Dr. Sudhir Akojwar [1] in their Wipe Transition Detection Algorithms, they have given a detailed survey of wipe detection algorithms along with their advantages and disadvantages.

    Adnan M. Alattar in their Detecting and Compressing Dissolve Regions in Video Sequences with a DVI Multimedia Image Compression Algorithm [2] have proposed a dissolve detector and dissolve handling mechanism. The dissolve detector exploits the parabolic behavior of the variances of the frames in a dissolve region to differentiate it from the rest of the group.

    Miss. Mikhal Rakshaskar, Prof. Salim Chavan [3] in their Comparative Study of Various Algorithms for Detection of Fades in Video Sequences have done a survey on various fade detection algorithms.

    Chong-Wah Ngo, Ting-Chuen Pong, and Roland T. Chin [4] have presented a novel approach for video shot detection, based on the analysis of temporal slices which are extracted from the video by slicing through the sequence of video frames and collecting temporal signatures.

    Jordi Mas and Gabriel Fernandez [5] have presented a method for video shot boundary detection based on color histogram differences in Video Shot Boundary Detection Bases on Color Histogram. It provides a simple and fast growing algorithms in real time.

    Li Yufeng, Yang Yinghua, Li Guiju [6] have proposed a Wavelet Transform Method in which wipe transition was considered as vital mode of gradual transition. In the intended idea, each frame of color sub-image and edge sub-image are decomposed with the aid of Db-4 wavelet transition.

    Sarah Porter, Majid Mirmehdi & Barry Thomas [7] have used the Average Inter-Frame Correlation Coefficient and Block- Based Motion Estimation to track image blocks through the video sequence and to distinguish changes caused by shot transitions from those caused by camera and object motion.

  3. OBJECTIVE OF THE WORK

    The main objective of this paper is to build a model that will find different gradual transitions namely fade, dissolve and wipe. For hard-cut, a large number of methods have been proposed. However research work on finding gradual transition are comparatively less [1] [2]] [3] [4] [5] [6] [7]. Flow of work (3.1) show flow of entre proposed work.

      1. Flow of work

        A representation about the flow of work is shown in figure

        3.1. Input that is to be given to this system, is video (frames) with gradual transitions. Input frames are converted to grey- scale. For the grey-scaled frames histogram properties, discussed in section 3.3, are calculated. These properties are then normalized

        Input: – Frames containing occurrence of transitions 1, 2 . N

        Output: – Rules with consistency response to the input

        Transitions Transition 1 : Fade

        Transition 2 : Dissolve Transition 3 : Wipe

        Fig 3.1 Flow of work

        (range 0 – 1) to understand their behavior. The normalized values are plotted with x axis (frame no) being independent of y axis (value). The characteristic behavior of the graphs are studied, based on which certain rules are formulated, which will be unique to the gradual transitions.

      2. Type of shot transition

        Shot transition is characterized into two categories, hard cut and gradual transition. In gradual transition, there are three kinds; Fade, Dissolve & Wipe.

        i) Hard cut: – The change from one shot to another without

        iv) Wipe: – Of the gradual transitions, wipe is dynamic. When one shit is replaced by another shot, where the replacing frame occurs from one side of the frame being replaces, wipe is said to have occurred. (Fig 3.2 d)

      3. Methodology

    The following characteristic properties are derived from histogram of an image.

    1. Mean / Brightness: Brightness is the perception elicited by the luminance of a visual target.

      () = 1 1 1 (, )

      any transition effects in between is hard cut. It is also called

      =0

      =0

      as abrupt change. (Fig 3.2 a)

    2. Fade: – In a fade video sequence, a shot turns gradually into a single color, usually black. Fade-in occurs when the transition is between a constant image and a scene. Fade-out

    1. Contrast: The contrast of an image is the amount to which different objects in the image can be visually distinguished from one another.

      is between a scene and a constant image. (Fig 3.2 b)

    2. Dissolve: – Dissolve is a combination of fade-in and fade- out. It occurs when one shot changes to another shot gradually. A new frame fades-in to the sequence bringing out dissolve. (Fig 3.2 c)

    () = 1

    1 1

    (I

    =0 =0

    )2

    Vol. 6 Issue 10, October – 2017

    is a visual constant which varies from 0.6 to 0.7 M = width (no of columns)

    N = height (no of rows) B = mean ()

    = standard deviation

    pi = probability of occurrence of pixel i

    (a)

    (b)

    (c)

    (d)

    Figure 3.2: – (a) Hard-cut (b) Fade (c) Dissolve (d) Wipe

    1. Entropy: The measure of the amount of information that can be derived from the image.

      =0

      = 255 (log2 )

    2. One Dimensional Moment: An image moment is a certain particular weighted average of the image pixels' intensities.

      =0

      µn = 255( ) ()

    3. Skewness: A measure of the degree of asymmetry of the histogram. 1 = µ3/3

    4. Kurtosis: It is the measure of the degree of peakness of a histogram and is reresented by k.

      = µ4/4 3

    5. Spatial Frequency: SF is computed as SF = 2 + 2

  4. RESULTS

    In order to demonstrate different video transitions, using the properties derived from histogram a number of input video (24 sets), natural scenery is chosen. Video data set contain gradual transitions; fade (8 sets), dissolve (8 sets), wipe (8 sets). Behavior of the histogram properties are observed to frame the rules, wherever applicable. Among the different statistical properties mentioned, it is seen that entropy (E), skewness (SK), kurtosis (K), spatial frequency (SF) & contrast (C) depicts notable change during the transition. Rules were formulated only for Fade & Dissolve transition. For Wipe transition there were no common behavior of the properties.

    Experiments are conducted first on Dissolve transition, followed by Fade and Wipe. For every rule, three sets (Set 1

    RF =

    ((,)(,1)2

    Row Frequency

    black, Set2 orange, Set 3 blue) are shown in the graph.

    =1 =2

    ((,)(1,)2

    CF = =1

    =2

    Column Frequency

    |(,)|

    1. Visibility: V =

    =1

    =1

    Value

    1. Video transition: – Dissolve

      Table 5.1: – Dissolve

      1.2

      Rule 1

      6

      Frame No

      Set2_SF

      1

      0.8

      0.6

      0.4

      0.2

      0

      0

      2

      4

      8

      10

      12

      -0.2

      Set1_SF

      Set3_SF

      (a)

      In graph 5.1 (a), SF – Spatial frequency is seen to have to fall and rise in its value during the transition (Set-1). Similar characteristic behavior of the histogram property is observed in other sets. As the input video, dissolve, passes through, values of spatial frequency decreases gradually and reaches zero, during the transition. Later on it increases and the value remains constant after transition is over.

    2. Video Transition: – Fade

      Value

      Table 5.2: – Fade

      Rule 1

      1.2

      1

      0.8

      0.6

      0.4

      0.2

      0

      0

      2

      4

      6 8

      10

      12

      14

      -0.2

      Frame No

      Set1_E

      Set1_SK

      Set1_K

      Set2_E

      Set2_SK

      Set2_K

      (a)

      In graph 5.2 (a), two sets are shown. Set 1 has three properties, (E red, SK black, K green) and Set2 has three properties, (E light blue, SK brown, K yellow).

      1.2

      1

      0.8

      0.6

      0.4

      0.2

      0

      Rule 2

      0

      2

      4

      6

      8

      1

      1

      1

      -0.2

      Set1_SK Set2_K

      Frame No

      Set1_K Set3_SK

      Set2_SK Set3_K

      (b)

      Rule 3

      1.2

      1

      0.8

      0.6

      0.4

      0.2

      0

      -0.2

      0

      2

      4

      (c)

      Set3_C

      Set1_C

      2

      6

      Frame no

      Set2_C

      4

      1

      0

      1

      8

      2

      0

      Value

      Value

      Graphs 5.2 (a), (b) and (c) show the comparison results. It is seen that, entropy (E), skewness (SK), kurtosis (K) and contrast (C), derived from the histogram of the each input frame, of fade videos, shows characteristic behavior during the transition. In graph 5.2 (a), entropy (E) inverts skewness (SK) and kurtosis (K) during the transition, rule 1. As the input video, fade passes through, with an increase in the value of entropy (E), there would be a decrease in skewness (SK) and kurtosis (K) values, and vice versa. In graph 5.2 (b) Skewness (SK) and kurtosis (K) follow each other during the transition, rule 2. The input video, fade, when passes through, behavior found in skewness (SK) is also found in kurtosis (K), i.e. they increase and decrease at the same time. In graph 5.2 (c) the value of contrast (C) decreases, reaches zero during the transition and then increases, rule 3.

    3. Video transition: – Wipe

    The histogram properties do not show any common characteristic behavior. Following graphs 5.3 (a) & (b) show notable changes in the behavior of the properties.

    1.2

    1

    0.8

    0.6

    0.4

    0.2

    0

    Table 5.3: – Wipe

    Therefore it is not possible to differentiate wipe transition from the rest of the group, making use of histogram properties alone.

    Value

    Rule set

    Sl.no

    Rule

    Dissolve

    1

    Gradual rise of spatial frequency.

    Fade

    1

    Entropy inverts skewness and kurtosis.

    2

    Skewness follows kurtosis.

    3

    Gradual rise of contrast

    2

    6

    Frame No

    Set1_C Set3_SF

    4

    2

    0

    1

    0

    1

    8

  5. CONCLUSION

    1.2

    1

    0.8

    0.6

    0.4

    0.2

    0

    (a)

    Set2_SF Set3_C

    Set1_SF Set2_C

    -0.2

    Histogram properties can individuate Dissolve and Fade transitions alone. Wipe transition doesnt not exhibit any common characteristic. So this method cannot be used to differentiate gradual transition as a whole. In our next work, we have made use of textural methods like GLCM (Grey- Level-Co-occurrence Matrix), Run-Length Matrix Method, Statistical Method and Laws Texture Method integrated with histogram properties, to detect gradual transitions in the video.

    Value

  6. ACKNOWLEDGEMENT

    The authors express their sincere gratitude to Prof

    N.R Shetty, Advisor and Dr H.C Nagaraj, Principal, Nitte Meenakshi Institute of Technology for giving constant encouragement and upport to carry out research at NMIT.

    Set3_SF

    Frame No

    Set1_SF Set2_SF

    -0.2

    2

    6

    4

    2

    0

    1

    0

    1

    8

    The authors extend their thanks and gratitude to the Vision Group on Science and Technology (VGST), Government of Karnataka to acknowledge their research and providing financial support to setup the infrastructure required to carry out the research.

    (b)

    Graphs 5.3 (a) & (b) show the comparison results. In graph

    5.3 (a), it can be seen that spatial frequency (SF) and contrast

    (C) in sets-1 and set-3 invert each other. But in set- 2, they are seen following each other. No common behavior can be formulated from this result.

    Similarly consider graph 5.3 (b), in set-1 and set-3, there is an increase in spatial frequency (SF) value. In set-2, spatial frequency (SF) curve is seen to have a decrease in its value during the transition. There are some notable changes in the behavior of histogram properties.

  7. REFERENCES

  1. Gradual Transition Detection Algorithms in Video Segmentation: A Survey, Salim A. Chavan, Sudhir G. Akojwar, International Journal of Scientific&

    Engineering Research Volume 4.

  2. Detecting and Compressing Dissolve Regions in Video Sequences with a DVI Multimedia Image Compression Algorithm, Adnan M. Alattar, IEEE.

  3. Comparative Study of Various Algorithms for Detection of Fades in Video Sequences Miss. Mikhal Rakshaskar1, Prof. Salim Chavan2, The International Journal Of Engineering And Science.

  4. Video Partitioning by Temporal Slice Coherency Chong-Wah Ngo, Ting-Chuen Pong, and Roland T. Chin, IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY.

  5. Video Shot Boundary Detection Based On Color Histogram, Jordi Mas and Gabriel Fernandez, Digital Television Center, La Salle School of Engineering, Ramon Llull University, Barcelona, Spain.

  6. A Novel Wipe Transition Detection Method Based on Multi-Feature, Li Yufeng, Yang Yinghua, Li Guiju, IEEE 2010.

  7. Detection and classification of shot transitions (2001) by Sarah Porter, Majid Mirmehdi, Barry Thomas, In Proc. of the 12th British Machine Vision Conf.

Leave a Reply