Clear Filters
Clear Filters

How to create an integrated particle counter and heat map?

10 views (last 30 days)
I am trying to create a script to sub-divide an image into a grid, count the number of particles within each grid, and then create a heatmap based on the threshold values for the number of particles per grid box. Would it be best to use a particle counting script to make a data table and then create a tabular data heatmap?

Accepted Answer

Pratyush Swain
Pratyush Swain on 26 Sep 2023
Hi Brett,
Both the methods of creating or not creating a data table can be effective, and the choice depends on the specific needs and preferences. It can be listed as follows:
  1. If you choose to use tabular data, it can then be used to create a heatmap using MATLAB's ‘heatmap’ function or other visualization tools that accept tabular data as input. This approach allows you to have flexibility in representing additional information or attributes associated with each grid box, if needed
  2. Alternatively, you can have a matrix or an array where each element represents the particle count in a specific grid box rather than creating a tabular data structure explicitly.
For more information on 'heatmap' function, you can refer to https://in.mathworks.com/help/matlab/ref/heatmap.html
Hope this helps.

More Answers (0)

Categories

Find more on Data Distribution Plots in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!