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
  Dynamically placing axes in subplots via dataframe plot naftis 1 167 Jul-29-2019, 12:10 AM
Last Post: scidam
  Market Basket Analysis: Finding Association Rules kylenater 1 241 Jun-21-2019, 03:53 AM
Last Post: scidam
  Statistical analysis of two dataframes zhl 1 454 Jun-11-2019, 07:26 PM
Last Post: Ecniv
  Help rendering a pylab plot cyberman 1 224 May-15-2019, 05:27 AM
Last Post: scidam
  MatPlotLib 2d plot of current density? ruben 0 166 May-13-2019, 06:47 AM
Last Post: ruben
  Fiber Photometry analysis Gius_ 0 196 May-12-2019, 09:14 PM
Last Post: Gius_
  Plot Line chart based on the input parthi1705 3 302 May-09-2019, 05:01 AM
Last Post: scidam
  Automatically plot each variable on the same graph for each "ID" AdWill97 0 236 Apr-15-2019, 09:29 AM
Last Post: AdWill97
  Sentiment Analysis Classifier lode 0 382 Feb-04-2019, 05:00 AM
Last Post: lode
  PyCM 1.8 released: Machine learning library for confusion matrix statistical analysis sepandhaghighi 0 338 Jan-05-2019, 12:36 PM
Last Post: sepandhaghighi

Forum Jump:

Users browsing this thread: 1 Guest(s)