Package cz.vutbr.fit.layout.vips.impl
Class Vips
- java.lang.Object
-
- cz.vutbr.fit.layout.vips.impl.Vips
-
public class Vips extends Object
The VIPS algorithm implementation.- Author:
- Tomas Popela, burgetr
-
-
Constructor Summary
Constructors Constructor Description Vips()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
enableGraphicsOutput(boolean enable)
Enables or disables graphics output of VIPS algorithm.void
enableOutputToFolder(boolean enable)
Enables or disables creation of new directory for every algorithm run.VipsTreeBuilder
getTreeBuilder()
VisualArea
getVisualStructure()
void
setPage(Page page)
Sets the page to processvoid
setPredefinedDoC(int value)
Sets permitted degree of coherence (pDoC) value.void
startSegmentation()
Starts visual segmentation of the current page.void
startSegmentation(Page page)
Starts segmentation of a page.
-
-
-
Method Detail
-
enableGraphicsOutput
public void enableGraphicsOutput(boolean enable)
Enables or disables graphics output of VIPS algorithm.- Parameters:
enable
- True for enable, otherwise false.
-
enableOutputToFolder
public void enableOutputToFolder(boolean enable)
Enables or disables creation of new directory for every algorithm run.- Parameters:
enable
- True for enable, otherwise false.
-
setPredefinedDoC
public void setPredefinedDoC(int value)
Sets permitted degree of coherence (pDoC) value.- Parameters:
value
- pDoC value (1 .. 11)
-
setPage
public void setPage(Page page)
Sets the page to process- Parameters:
page
- the new page
-
getVisualStructure
public VisualArea getVisualStructure()
-
getTreeBuilder
public VipsTreeBuilder getTreeBuilder()
-
startSegmentation
public void startSegmentation(Page page)
Starts segmentation of a page.- Parameters:
page
- The page to perform segmentation on.
-
startSegmentation
public void startSegmentation()
Starts visual segmentation of the current page.
-
-