Did I find the right examples for you? yes no

All Samples(9)  |  Call(6)  |  Derive(0)  |  Import(3)

src/s/c/scikit-image-HEAD/skimage/io/_plugins/q_histogram.py   scikit-image(Download)
import numpy as np
 
from PyQt4.QtGui import QWidget, QPainter, QGridLayout, QColor, QFrame
 
from util import histograms
    def __init__(self, img, layout='vertical', order=['R', 'G', 'B', 'V']):
        QFrame.__init__(self)
 
        r, g, b, v = histograms(img, 100)
        self.r_hist = ColorHistogram(r, (255, 0, 0))
    def update_hists(self, img):
        r, g, b, v = histograms(img, 100)
        self.r_hist.update_hist(r, (255, 0, 0))
        self.g_hist.update_hist(g, (0, 255, 0))
        self.b_hist.update_hist(b, (0, 0, 255))

src/s/c/scikit-image-0.9.3/skimage/io/_plugins/q_histogram.py   scikit-image(Download)
import numpy as np
 
from PyQt4.QtGui import QWidget, QPainter, QGridLayout, QColor, QFrame
 
from util import histograms
    def __init__(self, img, layout='vertical', order=['R', 'G', 'B', 'V']):
        QFrame.__init__(self)
 
        r, g, b, v = histograms(img, 100)
        self.r_hist = ColorHistogram(r, (255, 0, 0))
    def update_hists(self, img):
        r, g, b, v = histograms(img, 100)
        self.r_hist.update_hist(r, (255, 0, 0))
        self.g_hist.update_hist(g, (0, 255, 0))
        self.b_hist.update_hist(b, (0, 0, 255))

src/s/c/scikits-image-0.7.1/skimage/io/_plugins/q_histogram.py   scikits-image(Download)
import numpy as np
 
from PyQt4.QtGui import QWidget, QPainter, QGridLayout, QColor, QFrame
 
from util import histograms
    def __init__(self, img, layout='vertical', order=['R', 'G', 'B', 'V']):
        QFrame.__init__(self)
 
        r, g, b, v = histograms(img, 100)
        self.r_hist = ColorHistogram(r, (255, 0, 0))
    def update_hists(self, img):
        r, g, b, v = histograms(img, 100)
        self.r_hist.update_hist(r, (255, 0, 0))
        self.g_hist.update_hist(g, (0, 255, 0))
        self.b_hist.update_hist(b, (0, 0, 255))