Skip to content

[pixkit image] multitoning: Image multitoning

B9907012 edited this page Nov 4, 2015 · 4 revisions

ChanduStanichWuTrager2014

Stochastic, clustered dot multitone screening method.

[Reference] K. Chandu, M. Stanich, C. W. Wu, and B. Trager, "Hybrid halftoning using direct multi-bit search (DMS) screen algorithm," in Proc. SPIE-IS&T, 2014.

[Developer] Yun-Fu Liu (yunfuliu@gmail.com)

C++: bool ordereddithering::ChanduStanichWuTrager2014_genDitherArray(std::vectorcv::Mat &vec_DA1b, int daSize, int nColors,float D_min)
C++: bool ordereddithering::ChanduStanichWuTrager2014(const cv::Mat &src1b, const std::vectorcv::Mat &vec_DA1b,cv::Mat &dst1b)

Parameters:

  • vec_DA1b - The generated dither arrays (DA). They can be generated by DMS2012_genDitherArray(). They can be written and read by pixkit::write_vecMat and pixkit::read_vecMat, respectively.
  • daSize - Size of the screen (dither array).
  • nColors - Number of colors for presenting a multitone image.
  • D_min - A user defined parameter, to control the density of clustered dots.
  • src1b - The source image.
  • dst1b - The destination image.

Example:

    vector<Mat>	vec_DA1b;
    ordereddithering::ChanduStanichWuTrager2014_genDitherArray(vec_DA1b,128,4,4);
    pixkit::write_vecMat("vecmat.xml",vec_DA1b);
    pixkit::read_vecMat("vecmat.xml",vec_DA1b);
    ordereddithering::ChanduStanichWuTrager2014(src,vec_da,dst);

DMS2012

Stochastic, dispersed dot multitone screening method.

[Abbr] Direct multi-bit search (DMS)

[Reference] K. Chandu, M. Stanich, C. W. Wu, and B. Trager, "Direct multi-bit search (DMS) screen algorithm," in Proc. IEEE ICIP, pp. 817-820, 2012.

[Developer] Yun-Fu Liu (yunfuliu@gmail.com)

C++: bool ordereddithering::DMS2012_genDitherArray(std::vectorcv::Mat &vec_DA1b, int daSize, int nColors)
C++: bool ordereddithering::DMS2012(const cv::Mat &src1b, const std::vectorcv::Mat &vec_DA1b,cv::Mat &dst1b)

Parameters:

  • vec_DA1b - The generated dither arrays (DA). They can be generated by DMS2012_genDitherArray(). They can be written and read by pixkit::write_vecMat and pixkit::read_vecMat, respectively.
  • daSize - Size of the generated DAs (width and height).
  • nColors - Number of colors used to present an image.
  • src1b - The source image.
  • dst1b - The destination image.

Example:

    vector<Mat>	vec_DA1b;
    ordereddithering::DMS2012_genDitherArray(vec_DA1b,128,4);
    pixkit::write_vecMat("vecmat.xml",vec_DA1b);
    pixkit::read_vecMat("vecmat.xml",vec_DA1b);
    ordereddithering::DMS2012(src,vec_DA1b,dst);

Clone this wiki locally