|
libcrn
3.9.5
A document image processing library
|
Functions | |
| void | SavePNG (const ImageBW &img, const Path &fname) |
| Saves as PNG file. More... | |
| void | SaveJPEG (const ImageBW &img, const Path &fname, unsigned int qual) |
| Saves as JPEG file. More... | |
| void | SavePNG (const ImageGray &img, const Path &fname) |
| Saves as PNG file. More... | |
| void | SaveJPEG (const ImageGray &img, const Path &fname, unsigned int qual) |
| Saves as JPEG file. More... | |
| void | SavePNG (const ImageRGB &img, const Path &fname) |
| Saves as PNG file. More... | |
| void | SaveJPEG (const ImageRGB &img, const Path &fname, unsigned int qual) |
| Saves as JPEG file. More... | |
| template<typename T > | |
| void | SavePNG (const Image< pixel::RGB< T >> &img, const Path &fname) |
| template<typename T > | |
| void | SaveJPEG (const Image< pixel::RGB< T >> &img, const Path &fname, unsigned int qual) |
| template<typename T > | |
| void | SavePNG (const Image< T > &img, const Path &fname, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr) |
| template<typename T > | |
| void | SaveJPEG (const Image< T > &img, const Path &fname, unsigned int qual, typename std::enable_if< std::is_arithmetic< T >::value >::type *dummy=nullptr) |
| template<typename T > | |
| void | SavePNG (const Image< T > &img, const Path &fname, typename std::enable_if<!std::is_arithmetic< T >::value >::type *dummy=nullptr) |
| template<typename T > | |
| void | SaveJPEG (const Image< T > &img, const Path &fname, unsigned int qual, typename std::enable_if<!std::is_arithmetic< T >::value >::type *dummy=nullptr) |
| template<typename T > | |
| void | ShiftCopyRow (Image< T > &dest, const Image< T > &src, size_t row, int offset, double prevWeight, const T &bgColor) |
| Copies a row with a shift. More... | |
| template<typename T > | |
| void | ShiftCopyColumn (Image< T > &dest, const Image< T > &src, size_t col, int offset, double prevWeight, const T &bgColor) |
| Copies a column with a shift. More... | |
| template<typename T > | |
| Image< T > | MakeSmallRotation (const Image< T > &img, const Angle< Degree > &angle, const T &bgColor) |
| Image<T> crn::impl::MakeSmallRotation | ( | const Image< T > & | img, |
| const Angle< Degree > & | angle, | ||
| const T & | bgColor | ||
| ) |
Performs a fast small rotation
| [in] | angle | the angle of the rotation |
| [in] | bgColor | the fill color for the corners |
Definition at line 1744 of file CRNImage.hpp.
| void crn::impl::SaveJPEG | ( | const ImageBW & | img, |
| const Path & | fname, | ||
| unsigned int | qual | ||
| ) |
Saves as JPEG file.
Saves as JPEG file.
Saves the image to a JPEG file
| ExceptionInvalidArgument | fname is empty |
| ExceptionRuntime | no way to save jpeg |
| [in] | fname | the filename |
| [in] | qual | the quality of the compression (from 0 to 100) |
Definition at line 468 of file CRNImageGray.cpp.
Saves as JPEG file.
Saves as JPEG file
| ExceptionInvalidArgument | fname is empty |
| ExceptionRuntime | no way to save jpeg |
| [in] | img | the image to save |
| [in] | fname | full path to the image to save |
| [in] | qual | compression quality [0..100] |
Definition at line 480 of file CRNImageRGB.cpp.
| void crn::impl::SaveJPEG | ( | const Image< pixel::RGB< T >> & | img, |
| const Path & | fname, | ||
| unsigned int | qual | ||
| ) |
Saves as JPEG file
| [in] | img | the image to save |
| [in] | fname | full path to the image to save |
| [in] | qual | compression quality [0..100] |
Definition at line 465 of file CRNImage.h.
| void crn::impl::SaveJPEG | ( | const Image< T > & | img, |
| const Path & | fname, | ||
| unsigned int | qual, | ||
| typename std::enable_if< std::is_arithmetic< T >::value >::type * | dummy = nullptr |
||
| ) |
Saves as JPEG file
| [in] | img | the image to save |
| [in] | fname | full path to the image to save |
| [in] | qual | compression quality [0..100] |
Definition at line 483 of file CRNImage.h.
| void crn::impl::SaveJPEG | ( | const Image< T > & | img, |
| const Path & | fname, | ||
| unsigned int | qual, | ||
| typename std::enable_if<!std::is_arithmetic< T >::value >::type * | dummy = nullptr |
||
| ) |
Saves as JPEG file
| ExceptionInvalidArgument | unsupported pixel format |
| [in] | img | the image to save |
| [in] | fname | full path to the image to save |
| [in] | qual | compression quality [0..100] |
Definition at line 504 of file CRNImage.h.
| void crn::impl::SavePNG | ( | const ImageBW & | img, |
| const Path & | fname | ||
| ) |
Saves as PNG file.
Saves as PNG file.
Saves the image to a PNG file
| ExceptionInvalidArgument | fname is empty or pixel format is not BW, Gray nor RGB. |
| ExceptionRuntime | no way to save png |
| [in] | fname | the filename |
Definition at line 277 of file CRNImageGray.cpp.
Saves as PNG file.
Saves as PNG file
| ExceptionInvalidArgument | fname is empty |
| ExceptionRuntime | no way to save png |
| [in] | img | the image to save |
| [in] | fname | full path to the image to save |
Definition at line 286 of file CRNImageRGB.cpp.
| void crn::impl::SavePNG | ( | const Image< pixel::RGB< T >> & | img, |
| const Path & | fname | ||
| ) |
Saves as PNG file
| [in] | img | the image to save |
| [in] | fname | full path to the image to save |
Definition at line 456 of file CRNImage.h.
| void crn::impl::SavePNG | ( | const Image< T > & | img, |
| const Path & | fname, | ||
| typename std::enable_if< std::is_arithmetic< T >::value >::type * | dummy = nullptr |
||
| ) |
Saves as PNG file
| [in] | img | the image to save |
| [in] | fname | full path to the image to save |
Definition at line 474 of file CRNImage.h.
| void crn::impl::SavePNG | ( | const Image< T > & | img, |
| const Path & | fname, | ||
| typename std::enable_if<!std::is_arithmetic< T >::value >::type * | dummy = nullptr |
||
| ) |
Saves as PNG file
| ExceptionInvalidArgument | unsupported pixel format |
| [in] | img | the image to save |
| [in] | fname | full path to the image to save |
Definition at line 493 of file CRNImage.h.
| void crn::impl::ShiftCopyColumn | ( | Image< T > & | dest, |
| const Image< T > & | src, | ||
| size_t | col, | ||
| int | offset, | ||
| double | prevWeight, | ||
| const T & | bgColor | ||
| ) |
Copies a column with a shift.
| [in] | dest | the image to modify |
| [in] | src | the source image |
| [in] | col | the abscissa of the column to copy |
| [in] | offset | the shift |
| [in] | prevWeight | the weight of the previous pixel (for smoothing) |
| [in] | bgColor | the fill color for the corners |
Definition at line 1695 of file CRNImage.hpp.
| void crn::impl::ShiftCopyRow | ( | Image< T > & | dest, |
| const Image< T > & | src, | ||
| size_t | row, | ||
| int | offset, | ||
| double | prevWeight, | ||
| const T & | bgColor | ||
| ) |
Copies a row with a shift.
| [in] | dest | the image to modify |
| [in] | src | the source image |
| [in] | row | the ordinate of the row to copy |
| [in] | offset | the shift |
| [in] | prevWeight | the weight of the previous pixel (for smoothing) |
| [in] | bgColor | the fill color for the corners |
Definition at line 1642 of file CRNImage.hpp.
1.8.6