Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Plot/Image analysis %of colored area(grid)

For a project I plotted a neighboorhood with matplotlib. I used filled polygons.

I would like to create a script wich divide the area in smaller square and analyse each square. If the square is full (A building) then the square coordinates will be added to a list, if the square is blank (empty), nothing happend and if the square have a part colored and a part blank, the square is replaced by a filled square and its cooridinates are saved in the list if the colored part represente more than 50% of the original square area,else the square is replaced with a blank one.
The aim of this script is to create a "square" neighboorhood and to have datas to recreate this square with Python or another software
I'm looking for a command/script abble to analyse and give the proportion of the colored area in output.


Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Market Basket Analysis: Finding Association Rules kylenater 1 210 Jun-21-2019, 03:53 AM
Last Post: scidam
  Statistical analysis of two dataframes zhl 1 430 Jun-11-2019, 07:26 PM
Last Post: Ecniv
  Help rendering a pylab plot cyberman 1 202 May-15-2019, 05:27 AM
Last Post: scidam
  MatPlotLib 2d plot of current density? ruben 0 144 May-13-2019, 06:47 AM
Last Post: ruben
  Fiber Photometry analysis Gius_ 0 171 May-12-2019, 09:14 PM
Last Post: Gius_
  Plot Line chart based on the input parthi1705 3 276 May-09-2019, 05:01 AM
Last Post: scidam
  Automatically plot each variable on the same graph for each "ID" AdWill97 0 205 Apr-15-2019, 09:29 AM
Last Post: AdWill97
  Sentiment Analysis Classifier lode 0 361 Feb-04-2019, 05:00 AM
Last Post: lode
  PyCM 1.8 released: Machine learning library for confusion matrix statistical analysis sepandhaghighi 0 307 Jan-05-2019, 12:36 PM
Last Post: sepandhaghighi
  Select specific index for plot rundesquadrat 1 397 Dec-26-2018, 07:47 AM
Last Post: scidam

Forum Jump:

Users browsing this thread: 1 Guest(s)