Calculating Figure Count

Calculate the number of figures for the specified area.

How to Execute

Run Directly on Screen

Right-drag on screen to select the region for calculation. Release the right button to open the context menu, then select Calculate/Figure Count.

Screen R Click Menu Figure Count

The calculation result is saved to Calculation Panel datalist and displayed on screen.

Figure Count Added

Right-click on the calculation result displayed on screen or in the datalist to open the context menu, containing the following items in addition to the default context menu items.

Item Action
Show Show/hide the calculation results on screen.
Display/Name Show/hide the name of the calculation result on screen.
Display/Coordinates Show/hide the coordinates of the calculation result on screen.
Color Change the display color of the calculation result on screen.

Run from Calculate Figure Count Dialog

Do one of the following to open Calculate Figure Count dialog:

  • Select Calculate/Figure Count from the context menu of screen.
  • Right-click on the blank part of Calculation Panel to open the context menu, then select Figure Count.

Screen Figure Count Dialog

Specify the calculation area in Area and press OK to begin calculation.

Load Area File and Calculate

Select Load AreaFile/Figure Count from the main menu to open Open AreaFile for Figure Count dialog.

File Dialog

Select an Area File and press OK. The calculation is performed on each area described in the file.

Refer to Area File page.

Output the Calculation Results to a File

The calculated results can be saved to a text file in CSV format.

Click the icon on Calculation Panel and select Figure Count to open the Save Figure Count dialog.

Save Figure Count Dialog

Specify the file name and press OK to save the results. The output has the following format:

#Figure Count Created by nebv VERSION (uid=UID) USER@HOSTNAME DATE
#COMMAND addFigureCount
#ARGS 
#xmin,ymin,xmax,ymax,count
489.4,343.5,597.5,447.3,100

Run from the Command Line

Specify --figure-count-file option with an Area File at startup to execute calculation on each area described in the file after startup. You can also specify the filename to save the calculation results using --figure-count-file-out option.

By specifying as follows, the calculation results for the specified range in figure_file will be output to figure_count_result.txt:

$ nebv --figure-count-file=/path/to/areafile.txt --figure-count-file-out=/path/to/figure_count_result.txt /path/to/figure_file
$ nebv --figure-count-file="0,0,100,100" --figure-count-file-out=/path/to/figure_count_result.txt /path/to/figure_file

For Area File syntax, Refer to Area File page.

See --figure-count-file, --figure-count-file-out in Boot Options page.

The calculation method of the Figure Count and the display method of the result can be changed from the Preference. See preference Action/Densitypage for detail.

Restrictions

Figures that touch with the specified area only by its edges are excluded from the calculation.

Last modified December 9, 2024