14a7c84fa56c32eb7f4bbe057ce118cbff6ce8fd,skvideo/measure/scene.py,,_scenedet_intensity,#,58
Before Change
detected_scenes = [0]
// grayscale
luminancedata = rgb2gray(videodata)
numFrames, height, width, channels = luminancedata.shape
luminancedata = luminancedata[:, :, :, 0]
for t in range(0, numFrames-1):
hist1, bins = np.histogram(luminancedata[t], bins=256, range=(0, 255))
hist2, bins = np.histogram(luminancedata[t+1], bins=256, range=(0, 255))
hist1 = hist1.astype(np.float)
hist2 = hist2.astype(np.float)
After Change
numFrames, height, width, channels = videodata.shape
for t in range(0, numFrames-1):
frame0 = videodata[t].astype(np.float)
frame1 = videodata[t+1].astype(np.float)
delta = np.sum(np.abs(frame1 - frame0)/(height * width * channels))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: scikit-video/scikit-video
Commit Name: 14a7c84fa56c32eb7f4bbe057ce118cbff6ce8fd
Time: 2016-11-16
Author: tgoodall@utexas.edu
File Name: skvideo/measure/scene.py
Class Name:
Method Name: _scenedet_intensity
Project Name: scikit-image/scikit-image
Commit Name: 8acad22ff31d44b17651003db49791640d9b0b41
Time: 2021-01-21
Author: charlie_cha@outlook.com
File Name: skimage/color/colorlabel.py
Class Name:
Method Name: _label2rgb_overlay
Project Name: scikit-video/scikit-video
Commit Name: 01b2c738910f6080119029d1de100fb3d0e11118
Time: 2017-09-01
Author: tgoodall@utexas.edu
File Name: skvideo/measure/scene.py
Class Name:
Method Name: _scenedet_histogram