In [2]: %pylab inline Populating the interactive namespace from numpy and matplotlib In [3]: import numpy as np import matplotlib.pyplot as plt from skimage import io, color, feature In [4]: filename = "../sample/sample/10_left.jpeg" image = io.imread(filename) gray = color.rgb2gray(image) In [5]: gray.shape Out[5]: (3168, 4752) In [6]: np.histogram(gray) Out[6]: (array([7972546, 76184, 1027385, 1151136, 1396342, 1722503, 934449, 568661, 193914, 11216]), array([ 0. , 0.09623659, 0.19247318, 0.28870976, 0.38494635, 0.48118294, 0.57741953, 0.67365612, 0.76989271, 0.86612929, 0.96236588]))

Only displaying values greater than 0 because the raw images are dominated by black. In [7]: ignore = plt.hist(gray[gray > 0].flatten(), 256)

In [26]: red = image[:, :, [0]] green = image[:, :, [1]] blue = image[:, :, [2]]

1 of 3

4/28/15, 19:23

In [33]: ignore = plt.hist(red[red > 0].flatten(), 256)

In [34]: ignore = plt.hist(green[green > 0].flatten(), 256)

In [35]: ignore = plt.hist(blue[blue > 0].flatten(), 256)

In [36]: hsv_image = color.rgb2hsv(image) In [39]: hue = hsv_image[:, :, [0]] sat = hsv_image[:, :, [1]] value = hsv_image[:, :, [2]]

2 of 3

4/28/15, 19:23

In [43]: ignore = plt.hist(hue[hue > 0].flatten(), 256)

In [45]: ignore = plt.hist(sat[sat > 0].flatten(), 256)

In [47]: ignore = plt.hist(value[value > 0].flatten(), 256)

In [ ]:

3 of 3

4/28/15, 19:23

1 of 3 4/28/15, 19:23 - GitHub

Apr 28, 2015 - Populating the interactive namespace from numpy and matplotlib. Out[5]: (3168, 4752). Out[6]: (array([7972546, 76184, 1027385, 1151136, ...

130KB Sizes 1 Downloads 372 Views

Recommend Documents

1 Sunday, 3 March, 13 - GitHub
Mar 3, 2013 - Page 3. My Scripting Experience. HTML/CSS. JavaScript + jQuery. PHP + MySQL. NodeJS + MongoDB. Python + Django + PostgreSQL. C# + Unity3D. Objective C + iOS SDK. 3. Sunday, 3 March, 13 ... -Testing Mobile (Edge / Simulator / Virtual Hos

1 Sunday, 3 March, 13 - GitHub
Ajax. Animation. Plugins. Callbacks. Flexibility. Community / Docs. CDN Hosting ... My App Structure. Let's look at some examples! -Basic Site. -Kropr. -Playfight ...

838-1923-1-PB.pdf
in situ) yang disebabkan karena. keterbatasan sifat gelombang. elektromagnetik dan ... Page 4 of 11. Main menu. Displaying 838-1923-1-PB.pdf. Page 1 of 11.

Haxe 3 Manual - GitHub
of programs in Haxe. Each Haxe class has an explicit name, an implied path and zero or more class fields. Here we will focus on the general structure of classes and their relations, while leaving the details of class fields for Class Fields (Chapter

Lab 3: Structure - GitHub
Structure Harvester is very easy to use, and is all web-based! You simply upload your zip file and then click “Harvest!” It may take a few minutes to run.

symbiotic 3 - GitHub
Marek Chalupa, Martin Jonáš, Jiri Slaby,. Jan Strejcek, and Martina Vitovská. Masaryk University, Brno. Page 2. Symbiotic workflow. SOURCES. LLVM.

1 3 3 ITEM NO. PART NUMBER QTY. 1 Acrylic Wall Panel 2 2 ... - GitHub
*This Page is for the stand off for mounting the acrylic case to the Robot kit. These pieces also Include another pair for 10-24. Hex Nut*. DETAIL B. SCALE 1 : 1.

EU \3 - GitHub
l)The switch has been open for a long time when at time t = 0, the switch is closed. What is. 11(0), the magnitude of the current through the resistor R1 just after ...

Chapter 3 - GitHub
N(0, 1). The CLT tells us about the shape of the “piling”, when appropriately normalized. Evaluation. Once I choose some way to “learn” a statistical model, I need to decide if I'm doing a good job. How do I decide if I'm doing anything good?

1 - GitHub
are constantly accelerated by an electric field in the direction of the cathode, the num- ...... als, a standard fit software written at the University of Illinois [Beechem et al., 1991], ...... Technical report, International Computer Science Instit

Lab 3 Example - GitHub
Download “polygonum.stru”'. • Look at “polygonum.stru” using a text editor. – Column 1 refers to individual ID (516 total individuals). – Column 2 refers to ...

Project 3 - GitHub
Discuss the following: 1. Plot the residual vs. number of iteration for each method. Use different relaxation factors for PSOR and LSOR. 2. What relaxation factor ...

1 - GitHub
Mar 4, 2002 - is now an integral part of computer science curricula. ...... students have one major department in which they are working OIl their degree.

1 Background 2 Goals 3 Approach 4 Challenges - GitHub
code for the feed forward network required major modifications at every level in order to accomadate. The existing application of NEAT to Flappy Bird was not ...

Feb. 13, 1923.
energy on radio-electro-sensitive'means, and causing ... sources of electric energy,'for example, a. , and the .... "lIlg an alternative repeating arrangement,. 115.

Queens Community District 3 - GitHub
This metric from the Mayor's Office for Economic Opportunity accounts for NYC's high cost of housing, as well as other costs of living and anti-poverty benefits. Land Use Category. % Lot. Area. # Lots. Click here for a more detailed land use map of Q

Manhattan Community District 3 - GitHub
E 14 St. EastRiver. MN 6. MN 2. MN 1. Manhattan Community District 3. Neighborhoods1: Chinatown, East Village, Lower East Side, NoHo, Two Bridges. LAND USE MAP. 164,407. 163,277. -1% ... ACCESS TO PARKS7 of residents live within.

Operating Systems Homework #3 - GitHub
May 14, 2015 - (Integer) Number indicating scheduling algorithm. 27 int policy;. 28. // Enum values for policy. 29 const short FCFS=0, SJF=1, PRIOR=2, RR=3;.

Brooklyn Community District 3 - GitHub
Transportation/Utility. Public/Institutional. Open Space. Parking. Vacant. Other. 6,911. 6,373. 194. 1,457. 245. 199. 32. 368. 39. 284. 822. 71. U tica. A v. Broadway ... Bedford-Stuyvesant, Stuyvesant Heights, Tompkins Park North. Top 3 pressing iss

Part 1 - GitHub
Apr 27, 2014 - Developing scalable applications with IBM MQ Light and ... Improving the sample application by separating the web-facing component from the.

1 Group Theory - GitHub
describing the group, one can encompass the transformations and their corresponding sym- metries. In fact, every symmetry has an associated group encompassing it. To make this discussion concrete, let's consider an example first and then delve into t