<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Compiler Fehler]]></title><description><![CDATA[<p>Hallo Profis!<br />
Ich verstehe von c++ gar nichts. Ein Programm soll auf CentOS 6 installiert werden. Der Entwickler hat es auf RHE6, FC15, MacOSX und FreeBSD getestet ohne Probleme. Bei mir gib es immer wieder Fehler. Ich habe Entwickler gefragt und er hat mir noch Tipps gegeben, Leider ohne Erfolg. Vielleicht weißt jemand, wo das Problem liegt.</p>
<blockquote>
<p>[root@group build]# cmake -D OpenCV_PREFIX=/usr/local .. -D<br />
FFMPEG=/usr/local .. -D BASH=/bin/bash ..<br />
-- The C compiler identification is GNU 4.4.7<br />
-- The CXX compiler identification is GNU 4.4.7<br />
-- Check for working C compiler: /usr/bin/cc<br />
-- Check for working C compiler: /usr/bin/cc -- works<br />
-- Detecting C compiler ABI info<br />
-- Detecting C compiler ABI info - done<br />
-- Check for working CXX compiler: /usr/bin/c++<br />
-- Check for working CXX compiler: /usr/bin/c++ -- works<br />
-- Detecting CXX compiler ABI info<br />
-- Detecting CXX compiler ABI info - done<br />
-- Configuring done<br />
-- Generating done<br />
-- Build files have been written to: /usr/src/face-analysis-sdk/build<br />
[root@group build]# make<br />
Scanning dependencies of target utilities<br />
[ 2%] Building CXX object<br />
src/utils/CMakeFiles/utilities.dir/command-line-arguments.cpp.o<br />
[ 5%] Building CXX object src/utils/CMakeFiles/utilities.dir/helpers.cpp.o<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp: In function Б-?int<br />
rank(const cv::Mat_&lt;double&gt;&amp;)Б-?:<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp:101: error:<br />
Б-?assertБ-? was not declared in this scope<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp:105: error:<br />
Б-?numeric_limitsБ-? is not a member of Б-?stdБ-?<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp:105: error: expected<br />
primary-expression before Б-?doubleБ-?<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp:105: error: expected<br />
Б-?)Б-? before Б-?doubleБ-?<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp: In function<br />
Б-?cv::Mat_&lt;unsigned char&gt; load_grayscale_image(const char*, int,<br />
cv::Mat*)Б-?:<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp:317: error:<br />
Б-?assertБ-? was not declared in this scope<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp: In function<br />
Б-?cv::Mat_&lt;unsigned char&gt; load_grayscale_image(const char*, cv::Mat*)Б-?:<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp:332: error:<br />
Б-?CV_BGR2GRAYБ-? was not declared in this scope<br />
make[2]: *** [src/utils/CMakeFiles/utilities.dir/helpers.cpp.o] Error 1<br />
make[1]: *** [src/utils/CMakeFiles/utilities.dir/all] Error 2<br />
make: *** [all] Error 2</p>
</blockquote>
<p>Das ist die Datei.</p>
<pre><code>// CSIRO has filed various patents which cover the Software. 

// CSIRO grants to you a license to any patents granted for inventions
// implemented by the Software for academic, research and non-commercial
// use only.

// CSIRO hereby reserves all rights to its inventions implemented by the
// Software and any patents subsequently granted for those inventions
// that are not expressly granted to you.  Should you wish to license the
// patents relating to the Software for commercial use please contact
// CSIRO IP &amp; Licensing, Gautam Tendulkar (gautam.tendulkar@csiro.au) or
// Nick Marsh (nick.marsh@csiro.au)

// This software is provided under the CSIRO OPEN SOURCE LICENSE
// (GPL2) which can be found in the LICENSE file located in the top
// most directory of the source code.

// Copyright CSIRO 2013

#ifndef _HELPERS_HPP_
#define _HELPERS_HPP_

#include &lt;opencv2/core/core.hpp&gt;
#include &lt;list&gt;
#include &lt;stdexcept&gt;
#include &lt;cstdarg&gt;

/** Evaluates predicate on all items within the range (begin,end)
    until predicate is false, otherwise returns true. */
template &lt;typename Iterator, typename Predicate&gt; 
bool every(Iterator begin, Iterator end, Predicate predicate);

template &lt;typename Iterator1, typename Iterator2, typename Predicate&gt;
bool every(Iterator1 begin1, Iterator1 end1, Iterator2 begin2, Iterator2 end2, Predicate predicate);

/** Evaluates predicate on all items within the range (begin,end)
    until predicate returns true, otherwise returns false. */
template &lt;typename Iterator, typename Predicate&gt;
bool some(Iterator begin, Iterator end, Predicate predicate);

template &lt;typename InputIterator, typename OutputIterator, typename Predicate&gt;
void remove_if_not(InputIterator begin, InputIterator end, OutputIterator out, Predicate predicate);

template &lt;typename InputIterator1, typename InputIterator2, typename Function&gt;
void for_each(InputIterator1 start1, InputIterator1 end1, InputIterator2 start2, InputIterator2 end2, Function function);

template &lt;typename Iterator1, typename Iterator2, typename T, typename BinaryFunction, typename Key&gt;
typename BinaryFunction::return_value reduce(Iterator1 begin, Iterator1 end, T init, BinaryFunction function, Key key);

template &lt;typename T&gt;
struct IdentityFunction : public std::unary_function&lt;T,T&gt;
{
  T operator()(const T &amp;a);
};

template &lt;typename T&gt;
IdentityFunction&lt;T&gt; identity();

bool nan_p(double value);
bool nan_p(const cv::Mat_&lt;double&gt; &amp;value);

bool plusp(int value);

template &lt;typename T1, typename T2&gt;
bool vector_lengths_equal_p(const std::vector&lt;T1&gt; &amp;v1, const std::vector&lt;T2&gt; &amp;v2);

template &lt;typename T1, typename T2, typename T3&gt;
bool vector_lengths_equal_p(const std::vector&lt;T1&gt; &amp;v1, const std::vector&lt;T2&gt; &amp;v2, const std::vector&lt;T3&gt; &amp;v3);

template &lt;typename T1, typename T2, typename T3, typename T4&gt;
bool vector_lengths_equal_p(const std::vector&lt;T1&gt; &amp;v1, const std::vector&lt;T2&gt; &amp;v2, const std::vector&lt;T3&gt; &amp;v3, const std::vector&lt;T4&gt; &amp;v4);

template &lt;typename T1, typename T2, typename T3, typename T4, typename T5&gt;
bool vector_lengths_equal_p(const std::vector&lt;T1&gt; &amp;v1, const std::vector&lt;T2&gt; &amp;v2, const std::vector&lt;T3&gt; &amp;v3, const std::vector&lt;T4&gt; &amp;v4, const std::vector&lt;T5&gt; &amp;v5);

/* matrix operations */
template &lt;typename T&gt;
bool valid_row_index_p(const cv::Mat_&lt;T&gt; &amp;matrix, int index);

template &lt;typename T&gt;
bool valid_column_index_p(const cv::Mat_&lt;T&gt; &amp;matrix, int index);

template &lt;typename T&gt;
bool valid_matrix_index_p(const cv::Mat_&lt;T&gt; &amp;matrix, int row, int column);

template &lt;typename T&gt;
cv::Mat_&lt;T&gt; ones(int number_of_rows, int number_of_columns);

template &lt;typename T&gt;
cv::Mat_&lt;T&gt; zeros(int number_of_rows, int number_of_columns);

template &lt;typename T, typename U&gt;
cv::Mat_&lt;T&gt; zeros(const cv::Size_&lt;U&gt; &amp;size);

template &lt;typename T&gt;
std::vector&lt;cv::Mat_&lt;T&gt; &gt; vector_of_zeros(int number_of_elements, int rows, int columns);

template &lt;typename T&gt;
std::vector&lt;cv::Mat_&lt;T&gt; &gt; vector_of_value(int number_of_elements, const cv::Mat_&lt;T&gt; &amp;value);

template &lt;typename T&gt;
std::vector&lt;cv::Mat_&lt;T&gt; &gt; vector_of_value(int number_of_elements, const cv::MatExpr &amp;expression);

template &lt;typename T&gt;
cv::Mat_&lt;T&gt; eye(int number_of_rows, int number_of_columns);

template &lt;typename T&gt;
bool less_than_or_equal_to(const cv::Mat_&lt;T&gt; &amp;a, const cv::Mat_&lt;T&gt; &amp;b);

cv::Mat_&lt;double&gt; column_concatenate(const cv::Mat_&lt;double&gt; &amp;a, const cv::Mat_&lt;double&gt; &amp;b);
cv::Mat_&lt;double&gt; column_concatenate(const cv::Mat_&lt;double&gt; &amp;a, const cv::Mat_&lt;double&gt; &amp;b, const cv::Mat_&lt;double&gt; &amp;c);

cv::Mat_&lt;double&gt; row_concatenate(const cv::Mat_&lt;double&gt; &amp;a, const cv::Mat_&lt;double&gt; &amp;b);

/* Compute the rank of matrix. */
int rank(const cv::Mat_&lt;double&gt; &amp;matrix);

bool valid_image_p(const cv::Mat &amp;image);
bool invalid_image_p(const cv::Mat &amp;image);

bool column_vector_with_length_p(const cv::Mat_&lt;double&gt; &amp;m, int length);
bool matrix_with_dimensions_p(const cv::Mat_&lt;double&gt; &amp;m, int rows, int columns);
bool matrix_with_dimensions_p(const cv::Mat_&lt;double&gt; &amp;m, const cv::Size_&lt;int&gt; &amp;size);
bool matrices_with_dimensions_p(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; &amp;input, int rows, int columns);
bool matrices_with_dimensions_p(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; &amp;input, const cv::Size_&lt;int&gt; &amp;size);

template &lt;typename T&gt;
bool matrix_dimensions_equal_p(const std::vector&lt;cv::Mat_&lt;T&gt; &gt; &amp;v);

bool column_vector_p(const cv::Mat_&lt;double&gt; &amp;matrix);
bool column_vectors_p(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; &amp;input);
bool column_vectors_with_length_p(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; &amp;input, int length);

std::ostream &amp;operator&lt;&lt;(std::ostream &amp;stream, const cv::Size &amp;s);

bool file_exists_p(const std::string &amp;pathname);

std::runtime_error make_runtime_error(const char *format, ...);
std::runtime_error vmake_runtime_error(const char *format, va_list args);

std::list&lt;std::string&gt; read_list(std::istream &amp;stream);
std::list&lt;std::string&gt; read_list(const char *filename);
std::vector&lt;std::string&gt; read_list_as_vector(const char *filename);

template &lt;typename Iterator, typename Function&gt;
void read_and_transform_list(const char *filename, Iterator output_iterator, Function function);

// pathnames
std::string pathname_type(const std::string &amp;pathname);
std::string pathname_name(const std::string &amp;pathname);
std::string pathname_directory(const std::string &amp;pathname);
std::string pathname_sans_directory(const std::string &amp;pathname);
std::string make_pathname(const std::string &amp;directory, const std::string &amp;name, const std::string &amp;type);

// operations
template &lt;typename Iterator&gt; void call_delete_on_pointers(Iterator begin, Iterator end);
template &lt;typename Sequence&gt; void call_delete_on_pointers(Sequence &amp;sequence);

template &lt;typename T&gt; std::vector&lt;T&gt; concatenate(const std::vector&lt;T&gt; &amp;a, const std::vector&lt;T&gt; &amp;b);

// Images
cv::Mat_&lt;uint8_t&gt; load_grayscale_image(const char *pathname, int colour_conversion_method, cv::Mat *original_image);
cv::Mat_&lt;uint8_t&gt; load_grayscale_image(const char *pathname, int colour_conversion_method);
cv::Mat_&lt;uint8_t&gt; load_grayscale_image(const char *pathname, cv::Mat *original_image);
cv::Mat_&lt;uint8_t&gt; load_grayscale_image(const char *pathname);

// visualisation
void imshow_normalised(const char *window_name, const cv::Mat_&lt;double&gt; &amp;image);
void imshow_jacobian(const char *window_name, const cv::Mat_&lt;double&gt; &amp;jacobian, const cv::Size_&lt;int&gt; &amp;size);

/* Produces a random vector containing floats between min and max. */
cv::Mat_&lt;double&gt; random_vector(int number_of_rows, double min = -1.0, double max = 1.0);

std::vector&lt;cv::Mat_&lt;double&gt; &gt; random_vectors(int number_of_vectors, int number_of_rows, double min = -1.0, double max = 1.0);

/* Produces a random vector containing floats between min and max. */
cv::Mat_&lt;double&gt; random_matrix(int number_of_rows, int number_of_columns, double min = -1.0, double max = 1.0);

std::vector&lt;cv::Mat_&lt;double&gt; &gt; random_matrices(int number_of_matrices, int number_of_rows, int number_of_columns, double min = -1.0, double max = 1.0);

cv::Mat_&lt;double&gt; random_matrix_of_maximum_rank(int number_of_rows, int number_of_columns, double min = -1.0, double max = 1.0);

/* Cloning */
template &lt;typename T&gt; cv::Mat_&lt;T&gt; clone(const cv::Mat_&lt;T&gt; &amp;input);
template &lt;typename T&gt; std::vector&lt;cv::Mat_&lt;T&gt; &gt; clone(const std::vector&lt;cv::Mat_&lt;T&gt; &gt; &amp;input);

/* norms */
double l1_norm(const cv::Mat_&lt;double&gt; &amp;input);
double l1_norm(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; &amp;input);

double l2_norm(const cv::Mat_&lt;double&gt; &amp;input);
double l2_norm(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; &amp;input);

double l2_norm(const cv::Point_&lt;double&gt; &amp;input);

/* l2_norm(prior * input) */
double l2_norm(const cv::Mat_&lt;double&gt; &amp;input, const cv::Mat_&lt;double&gt; &amp;prior);
double l2_norm(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; &amp;input, const cv::Mat_&lt;double&gt; &amp;prior);

/* l2_sq_norm  == std::pow(l2_norm, 2) */
double l2sq_norm(const cv::Mat_&lt;double&gt; input);
double l2sq_norm(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; input);
double l2sq_norm(const cv::Mat_&lt;double&gt; input, const cv::Mat_&lt;double&gt; &amp;prior);
double l2sq_norm(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; input, const cv::Mat_&lt;double&gt; &amp;prior);

#endif

#include &quot;helpers.tpp&quot;

// Local Variables:
// compile-in-directory: &quot;../&quot;
// End:
</code></pre>
<p>Über Ihre antworte werde ich mich freuen.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/319484/compiler-fehler</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Jul 2026 10:10:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/319484.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Aug 2013 18:35:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compiler Fehler on Tue, 20 Aug 2013 18:36:32 GMT]]></title><description><![CDATA[<p>Hallo Profis!<br />
Ich verstehe von c++ gar nichts. Ein Programm soll auf CentOS 6 installiert werden. Der Entwickler hat es auf RHE6, FC15, MacOSX und FreeBSD getestet ohne Probleme. Bei mir gib es immer wieder Fehler. Ich habe Entwickler gefragt und er hat mir noch Tipps gegeben, Leider ohne Erfolg. Vielleicht weißt jemand, wo das Problem liegt.</p>
<blockquote>
<p>[root@group build]# cmake -D OpenCV_PREFIX=/usr/local .. -D<br />
FFMPEG=/usr/local .. -D BASH=/bin/bash ..<br />
-- The C compiler identification is GNU 4.4.7<br />
-- The CXX compiler identification is GNU 4.4.7<br />
-- Check for working C compiler: /usr/bin/cc<br />
-- Check for working C compiler: /usr/bin/cc -- works<br />
-- Detecting C compiler ABI info<br />
-- Detecting C compiler ABI info - done<br />
-- Check for working CXX compiler: /usr/bin/c++<br />
-- Check for working CXX compiler: /usr/bin/c++ -- works<br />
-- Detecting CXX compiler ABI info<br />
-- Detecting CXX compiler ABI info - done<br />
-- Configuring done<br />
-- Generating done<br />
-- Build files have been written to: /usr/src/face-analysis-sdk/build<br />
[root@group build]# make<br />
Scanning dependencies of target utilities<br />
[ 2%] Building CXX object<br />
src/utils/CMakeFiles/utilities.dir/command-line-arguments.cpp.o<br />
[ 5%] Building CXX object src/utils/CMakeFiles/utilities.dir/helpers.cpp.o<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp: In function Б-?int<br />
rank(const cv::Mat_&lt;double&gt;&amp;)Б-?:<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp:101: error:<br />
Б-?assertБ-? was not declared in this scope<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp:105: error:<br />
Б-?numeric_limitsБ-? is not a member of Б-?stdБ-?<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp:105: error: expected<br />
primary-expression before Б-?doubleБ-?<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp:105: error: expected<br />
Б-?)Б-? before Б-?doubleБ-?<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp: In function<br />
Б-?cv::Mat_&lt;unsigned char&gt; load_grayscale_image(const char*, int,<br />
cv::Mat*)Б-?:<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp:317: error:<br />
Б-?assertБ-? was not declared in this scope<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp: In function<br />
Б-?cv::Mat_&lt;unsigned char&gt; load_grayscale_image(const char*, cv::Mat*)Б-?:<br />
/usr/src/face-analysis-sdk/src/utils/helpers.cpp:332: error:<br />
Б-?CV_BGR2GRAYБ-? was not declared in this scope<br />
make[2]: *** [src/utils/CMakeFiles/utilities.dir/helpers.cpp.o] Error 1<br />
make[1]: *** [src/utils/CMakeFiles/utilities.dir/all] Error 2<br />
make: *** [all] Error 2</p>
</blockquote>
<p>Das ist die Datei.</p>
<pre><code>// CSIRO has filed various patents which cover the Software. 

// CSIRO grants to you a license to any patents granted for inventions
// implemented by the Software for academic, research and non-commercial
// use only.

// CSIRO hereby reserves all rights to its inventions implemented by the
// Software and any patents subsequently granted for those inventions
// that are not expressly granted to you.  Should you wish to license the
// patents relating to the Software for commercial use please contact
// CSIRO IP &amp; Licensing, Gautam Tendulkar (gautam.tendulkar@csiro.au) or
// Nick Marsh (nick.marsh@csiro.au)

// This software is provided under the CSIRO OPEN SOURCE LICENSE
// (GPL2) which can be found in the LICENSE file located in the top
// most directory of the source code.

// Copyright CSIRO 2013

#ifndef _HELPERS_HPP_
#define _HELPERS_HPP_

#include &lt;opencv2/core/core.hpp&gt;
#include &lt;list&gt;
#include &lt;stdexcept&gt;
#include &lt;cstdarg&gt;

/** Evaluates predicate on all items within the range (begin,end)
    until predicate is false, otherwise returns true. */
template &lt;typename Iterator, typename Predicate&gt; 
bool every(Iterator begin, Iterator end, Predicate predicate);

template &lt;typename Iterator1, typename Iterator2, typename Predicate&gt;
bool every(Iterator1 begin1, Iterator1 end1, Iterator2 begin2, Iterator2 end2, Predicate predicate);

/** Evaluates predicate on all items within the range (begin,end)
    until predicate returns true, otherwise returns false. */
template &lt;typename Iterator, typename Predicate&gt;
bool some(Iterator begin, Iterator end, Predicate predicate);

template &lt;typename InputIterator, typename OutputIterator, typename Predicate&gt;
void remove_if_not(InputIterator begin, InputIterator end, OutputIterator out, Predicate predicate);

template &lt;typename InputIterator1, typename InputIterator2, typename Function&gt;
void for_each(InputIterator1 start1, InputIterator1 end1, InputIterator2 start2, InputIterator2 end2, Function function);

template &lt;typename Iterator1, typename Iterator2, typename T, typename BinaryFunction, typename Key&gt;
typename BinaryFunction::return_value reduce(Iterator1 begin, Iterator1 end, T init, BinaryFunction function, Key key);

template &lt;typename T&gt;
struct IdentityFunction : public std::unary_function&lt;T,T&gt;
{
  T operator()(const T &amp;a);
};

template &lt;typename T&gt;
IdentityFunction&lt;T&gt; identity();

bool nan_p(double value);
bool nan_p(const cv::Mat_&lt;double&gt; &amp;value);

bool plusp(int value);

template &lt;typename T1, typename T2&gt;
bool vector_lengths_equal_p(const std::vector&lt;T1&gt; &amp;v1, const std::vector&lt;T2&gt; &amp;v2);

template &lt;typename T1, typename T2, typename T3&gt;
bool vector_lengths_equal_p(const std::vector&lt;T1&gt; &amp;v1, const std::vector&lt;T2&gt; &amp;v2, const std::vector&lt;T3&gt; &amp;v3);

template &lt;typename T1, typename T2, typename T3, typename T4&gt;
bool vector_lengths_equal_p(const std::vector&lt;T1&gt; &amp;v1, const std::vector&lt;T2&gt; &amp;v2, const std::vector&lt;T3&gt; &amp;v3, const std::vector&lt;T4&gt; &amp;v4);

template &lt;typename T1, typename T2, typename T3, typename T4, typename T5&gt;
bool vector_lengths_equal_p(const std::vector&lt;T1&gt; &amp;v1, const std::vector&lt;T2&gt; &amp;v2, const std::vector&lt;T3&gt; &amp;v3, const std::vector&lt;T4&gt; &amp;v4, const std::vector&lt;T5&gt; &amp;v5);

/* matrix operations */
template &lt;typename T&gt;
bool valid_row_index_p(const cv::Mat_&lt;T&gt; &amp;matrix, int index);

template &lt;typename T&gt;
bool valid_column_index_p(const cv::Mat_&lt;T&gt; &amp;matrix, int index);

template &lt;typename T&gt;
bool valid_matrix_index_p(const cv::Mat_&lt;T&gt; &amp;matrix, int row, int column);

template &lt;typename T&gt;
cv::Mat_&lt;T&gt; ones(int number_of_rows, int number_of_columns);

template &lt;typename T&gt;
cv::Mat_&lt;T&gt; zeros(int number_of_rows, int number_of_columns);

template &lt;typename T, typename U&gt;
cv::Mat_&lt;T&gt; zeros(const cv::Size_&lt;U&gt; &amp;size);

template &lt;typename T&gt;
std::vector&lt;cv::Mat_&lt;T&gt; &gt; vector_of_zeros(int number_of_elements, int rows, int columns);

template &lt;typename T&gt;
std::vector&lt;cv::Mat_&lt;T&gt; &gt; vector_of_value(int number_of_elements, const cv::Mat_&lt;T&gt; &amp;value);

template &lt;typename T&gt;
std::vector&lt;cv::Mat_&lt;T&gt; &gt; vector_of_value(int number_of_elements, const cv::MatExpr &amp;expression);

template &lt;typename T&gt;
cv::Mat_&lt;T&gt; eye(int number_of_rows, int number_of_columns);

template &lt;typename T&gt;
bool less_than_or_equal_to(const cv::Mat_&lt;T&gt; &amp;a, const cv::Mat_&lt;T&gt; &amp;b);

cv::Mat_&lt;double&gt; column_concatenate(const cv::Mat_&lt;double&gt; &amp;a, const cv::Mat_&lt;double&gt; &amp;b);
cv::Mat_&lt;double&gt; column_concatenate(const cv::Mat_&lt;double&gt; &amp;a, const cv::Mat_&lt;double&gt; &amp;b, const cv::Mat_&lt;double&gt; &amp;c);

cv::Mat_&lt;double&gt; row_concatenate(const cv::Mat_&lt;double&gt; &amp;a, const cv::Mat_&lt;double&gt; &amp;b);

/* Compute the rank of matrix. */
int rank(const cv::Mat_&lt;double&gt; &amp;matrix);

bool valid_image_p(const cv::Mat &amp;image);
bool invalid_image_p(const cv::Mat &amp;image);

bool column_vector_with_length_p(const cv::Mat_&lt;double&gt; &amp;m, int length);
bool matrix_with_dimensions_p(const cv::Mat_&lt;double&gt; &amp;m, int rows, int columns);
bool matrix_with_dimensions_p(const cv::Mat_&lt;double&gt; &amp;m, const cv::Size_&lt;int&gt; &amp;size);
bool matrices_with_dimensions_p(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; &amp;input, int rows, int columns);
bool matrices_with_dimensions_p(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; &amp;input, const cv::Size_&lt;int&gt; &amp;size);

template &lt;typename T&gt;
bool matrix_dimensions_equal_p(const std::vector&lt;cv::Mat_&lt;T&gt; &gt; &amp;v);

bool column_vector_p(const cv::Mat_&lt;double&gt; &amp;matrix);
bool column_vectors_p(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; &amp;input);
bool column_vectors_with_length_p(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; &amp;input, int length);

std::ostream &amp;operator&lt;&lt;(std::ostream &amp;stream, const cv::Size &amp;s);

bool file_exists_p(const std::string &amp;pathname);

std::runtime_error make_runtime_error(const char *format, ...);
std::runtime_error vmake_runtime_error(const char *format, va_list args);

std::list&lt;std::string&gt; read_list(std::istream &amp;stream);
std::list&lt;std::string&gt; read_list(const char *filename);
std::vector&lt;std::string&gt; read_list_as_vector(const char *filename);

template &lt;typename Iterator, typename Function&gt;
void read_and_transform_list(const char *filename, Iterator output_iterator, Function function);

// pathnames
std::string pathname_type(const std::string &amp;pathname);
std::string pathname_name(const std::string &amp;pathname);
std::string pathname_directory(const std::string &amp;pathname);
std::string pathname_sans_directory(const std::string &amp;pathname);
std::string make_pathname(const std::string &amp;directory, const std::string &amp;name, const std::string &amp;type);

// operations
template &lt;typename Iterator&gt; void call_delete_on_pointers(Iterator begin, Iterator end);
template &lt;typename Sequence&gt; void call_delete_on_pointers(Sequence &amp;sequence);

template &lt;typename T&gt; std::vector&lt;T&gt; concatenate(const std::vector&lt;T&gt; &amp;a, const std::vector&lt;T&gt; &amp;b);

// Images
cv::Mat_&lt;uint8_t&gt; load_grayscale_image(const char *pathname, int colour_conversion_method, cv::Mat *original_image);
cv::Mat_&lt;uint8_t&gt; load_grayscale_image(const char *pathname, int colour_conversion_method);
cv::Mat_&lt;uint8_t&gt; load_grayscale_image(const char *pathname, cv::Mat *original_image);
cv::Mat_&lt;uint8_t&gt; load_grayscale_image(const char *pathname);

// visualisation
void imshow_normalised(const char *window_name, const cv::Mat_&lt;double&gt; &amp;image);
void imshow_jacobian(const char *window_name, const cv::Mat_&lt;double&gt; &amp;jacobian, const cv::Size_&lt;int&gt; &amp;size);

/* Produces a random vector containing floats between min and max. */
cv::Mat_&lt;double&gt; random_vector(int number_of_rows, double min = -1.0, double max = 1.0);

std::vector&lt;cv::Mat_&lt;double&gt; &gt; random_vectors(int number_of_vectors, int number_of_rows, double min = -1.0, double max = 1.0);

/* Produces a random vector containing floats between min and max. */
cv::Mat_&lt;double&gt; random_matrix(int number_of_rows, int number_of_columns, double min = -1.0, double max = 1.0);

std::vector&lt;cv::Mat_&lt;double&gt; &gt; random_matrices(int number_of_matrices, int number_of_rows, int number_of_columns, double min = -1.0, double max = 1.0);

cv::Mat_&lt;double&gt; random_matrix_of_maximum_rank(int number_of_rows, int number_of_columns, double min = -1.0, double max = 1.0);

/* Cloning */
template &lt;typename T&gt; cv::Mat_&lt;T&gt; clone(const cv::Mat_&lt;T&gt; &amp;input);
template &lt;typename T&gt; std::vector&lt;cv::Mat_&lt;T&gt; &gt; clone(const std::vector&lt;cv::Mat_&lt;T&gt; &gt; &amp;input);

/* norms */
double l1_norm(const cv::Mat_&lt;double&gt; &amp;input);
double l1_norm(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; &amp;input);

double l2_norm(const cv::Mat_&lt;double&gt; &amp;input);
double l2_norm(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; &amp;input);

double l2_norm(const cv::Point_&lt;double&gt; &amp;input);

/* l2_norm(prior * input) */
double l2_norm(const cv::Mat_&lt;double&gt; &amp;input, const cv::Mat_&lt;double&gt; &amp;prior);
double l2_norm(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; &amp;input, const cv::Mat_&lt;double&gt; &amp;prior);

/* l2_sq_norm  == std::pow(l2_norm, 2) */
double l2sq_norm(const cv::Mat_&lt;double&gt; input);
double l2sq_norm(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; input);
double l2sq_norm(const cv::Mat_&lt;double&gt; input, const cv::Mat_&lt;double&gt; &amp;prior);
double l2sq_norm(const std::vector&lt;cv::Mat_&lt;double&gt; &gt; input, const cv::Mat_&lt;double&gt; &amp;prior);

#endif

#include &quot;helpers.tpp&quot;

// Local Variables:
// compile-in-directory: &quot;../&quot;
// End:
</code></pre>
<p>Über Ihre antworte werde ich mich freuen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2347317</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2347317</guid><dc:creator><![CDATA[G4eqaMtTN]]></dc:creator><pubDate>Tue, 20 Aug 2013 18:36:32 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler Fehler on Tue, 20 Aug 2013 18:46:08 GMT]]></title><description><![CDATA[<p>Du hast uns helpers.hpp gezeigt, der Fehler ist aber in helpers.<strong>cpp</strong>.</p>
<p>Was du mal probieren kannst: Oben bei den anderen <code>#include</code> s ein</p>
<pre><code class="language-cpp">#include &lt;cassert&gt;
#include &lt;limits&gt;
</code></pre>
<p>einfügen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2347323</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2347323</guid><dc:creator><![CDATA[nhwsg]]></dc:creator><pubDate>Tue, 20 Aug 2013 18:46:08 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler Fehler on Tue, 20 Aug 2013 18:47:54 GMT]]></title><description><![CDATA[<p><code>#include &lt;cassert&gt;</code> fehlt. Nicht in dieser Datei, sondern in helpers.<strong>cpp</strong>. Einfach zu den anderen Zeilen hinzufügen, in denen <code>#include&lt;irgendwas&gt;</code> steht. Das ist eigentlich ein ziemlicher Anfängerfehler, würde mich nicht wundern, wenn das nicht der einzige Fehler wäre.</p>
<p>edit: Ahh, <code>limits</code> fehlt auch. Wusste doch, dass das sicher nicht der einzige Fehler ist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2347324</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2347324</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 20 Aug 2013 18:47:54 GMT</pubDate></item><item><title><![CDATA[Reply to Compiler Fehler on Wed, 21 Aug 2013 18:24:46 GMT]]></title><description><![CDATA[<p>Danke Leute! Ihr seit meine Helden. Ich bin weiter gekommen. Musste mich mit c++ auseinander setzen. Kaum was verstanden, aber habe noch eine Datei includiert und es ging dann weiter. Leider nicht 100%. Habe wieder Entwickler angeschrieben. Mal sehen was er sagt.<br />
Ich melde mich bestimmt noch.<br />
MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2347605</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2347605</guid><dc:creator><![CDATA[G4eqaMtTN]]></dc:creator><pubDate>Wed, 21 Aug 2013 18:24:46 GMT</pubDate></item></channel></rss>