nonoteam / NonoConverter

Converts image to nonogram
MIT License
1 stars 0 forks source link

Think about changing backend #97

Closed MaximSmolskiy closed 5 years ago

maik-nack commented 5 years ago

Class Field This class exists now.

Add fields:

Add methods:

Add private constructor without parameters. Constructor by a count of rows and columns replaced by constructor by a count of rows and columns, bitmap and parameter for converting.

maik-nack commented 5 years ago

Class Nonogram This class exists now.

Add fields:

Add methods:

Add private constructor without parameters. Add constructor by a count of rows and columns, bitmap and parameter for converting.

maik-nack commented 5 years ago

For more information about methods by the type of a line see #87 issue.

maik-nack commented 5 years ago

Class Cell. New class. This is the class of the cell of matrix that uses in the algorithm with finite-state machine.

Fields:

Methods:

Constructor without parameters.

maik-nack commented 5 years ago

Class StateMachine. New class. This is the representation of the finite-state machine. It contains state table.

Fields:

Methods:

Contructor by the line (int[] line) - numbers from nonogram.

maik-nack commented 5 years ago

Class NonogramSolver. This class exists now.

Fields:

Methods:

Constructor without parameters.

maik-nack commented 5 years ago

Class ImageConverter. This class exists now.

Replace method

    public static Field convertImage(
            Bitmap bmp,
            int rows,
            int cols,
            AsyncTask<Void, Void, Field> asyncTask)

by

    public static Nonogram convertImage(
            Bitmap bmp,
            int rows,
            int cols,
            AsyncTask<Void, Void, Nonogram> asyncTask)

Move method getThumbnail in the constructor of Field class.