亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cmatrix.h

?? 攝影測量專業。實現單像后方交會以及立體像對的前方交會。以文件形式讀取控制點和像點坐標。
?? H
?? 第 1 頁 / 共 5 頁
字號:
/**
\file     cmatrix.h
\brief    'c' functions for vector and matrix operations.
\author   Glenn D. MacGougan (GDM)
\date     2008-09-22
\version  0.06 Beta

\b Version \b Information \n
This is the open source version (BSD license). The Professional Version
is avaiable via http://www.zenautics.com. The Professional Version
is highly optimized using SIMD and includes optimization for multi-core 
processors.

\b License \b Information \n
Copyright (c) 2008, Glenn D. MacGougan, Zenautics Technologies Inc. \n

Redistribution and use in source and binary forms, with or without
modification, of the specified files is permitted provided the following 
conditions are met: \n

- Redistributions of source code must retain the above copyright
  notice, this list of conditions and the following disclaimer. \n
- Redistributions in binary form must reproduce the above copyright
  notice, this list of conditions and the following disclaimer in the
  documentation and/or other materials provided with the distribution. \n
- The name(s) of the contributor(s) may not be used to endorse or promote 
  products derived from this software without specific prior written 
  permission. \n

THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND ANY EXPRESS 
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
SUCH DAMAGE.

\b NOTES: \n
This code was developed using rigourous unit testing for every function 
and operation. Despite any rigorous development process, bugs are
inevitable. Please report bugs and suggested fixes to glenn @ zenautics.com.\n
*/

#ifndef ZENUATICS_MTX_H
#define ZENUATICS_MTX_H

#ifdef __cplusplus
extern "C" 
{
#endif

typedef int BOOL;

#ifndef FALSE
#define FALSE (0)
#endif
#ifndef TRUE
#define TRUE (1)
#endif

/// \brief  A complex data struct.
typedef struct 
{ 
  double re; //!< The real part.
  double im; //!< The imaginary part.
} stComplex;

/// \brief  The deep level matrix struct. The matrix is either real or complex.
typedef struct
{  
  unsigned   nrows;   //!< The number of rows in the matrix.
  unsigned   ncols;   //!< The number of columns in the matrix.
  BOOL       isReal;  //!< This indicates if is the matrix real or complex.
  double     **data;  //!< This is a pointer to an array of double column vectors.
  stComplex  **cplx;  //!< Thsi is a pointer to an array of complex column vectors.
  char      *comment; //!< This is a comment string (if applicable).
} MTX;


/// \brief  This function must be called first by users of cmatrix!
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Initialize_MTXEngine();


/// \brief  This function is used to set if matrices that are single 
///         elements (1x1) are treated as scalars for math operations
///         or whether the regular matrix rules apply. THIS IS ENABLED
///         BY DEFAULT.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Enable1x1MatricesForTreatmentAsScalars( BOOL enable );

/// \brief  Is this a null matrix?
///
/// \return TRUE if the matrix is null, FALSE otherwise.
BOOL MTX_isNull( const MTX *M );


/// \brief  Are matrices A & B conformal for multiplication, real * real
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_isConformalForMultiplication( const MTX *A, const MTX *B );

/// \brief  Are matrices A & B conformat for addition/subtraction, real + real
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_isConformalForAddition( const MTX *A, const MTX *B );

/// \brief  Is this a square matrix?
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_isSquare( const MTX *A );

/// \brief  are A and B the same size?
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_isSameSize( const MTX *A, const MTX *B );

/// \brief  Initialize a MTX matrix struct to appropriate zero values. This must always be called for proper operation!
/// \code
/// MTX matrix;
/// MTX_Init( &matrix );
/// \endcode
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Init( MTX *M );



/// \brief  Set the matrix comment string
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_SetComment( MTX *M, const char *comment );

/// \brief  Clear the matrix data from memory if dynamically allocated. Zero the struct members.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Free( MTX *M );

/// \brief  Allocate matrix data (set to zero).
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Calloc( MTX *M, const unsigned nrows, const unsigned ncols, const BOOL isReal );

/// \brief  Allocate matrix data (not set to zero).
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Malloc( MTX *M, const unsigned nrows, const unsigned ncols, const BOOL isReal );

/// \brief  Set a scalar value in the matrix.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_SetValue( MTX *M, const unsigned row, const unsigned col, const double value );

/// \brief  Set a complex value in the matrix.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_SetComplexValue( MTX *M, const unsigned row, const unsigned col, const double re, const double im );

/// \brief  Matrix M = Re + Im*i, where Re and Im are real matrices.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Complex( MTX *M, const MTX *Re, const MTX *Im );

/// \brief  Set the specified column in Matrix M to Re + Im*i, where Re and Im are real matrices.
/// The dimensions of M must already be valid.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_SetComplexColumn( MTX *M, const unsigned col, const MTX *Re, const MTX *Im );

/// \brief  Convert a real matrix to a complex matrix
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_ConvertRealToComplex( MTX *M );

/// \brief  Convert a complex marix to a real matrix using only the imaginary component A = real(B).
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_ConvertComplexToReal( MTX *M );

/// \brief  Convert a complex marix to a real matrix using only the imaginary component A = imag(B).
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_ConvertComplexToImag( MTX *M );

/// \brief  Extract the real component of matrix M.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Real( const MTX *M, MTX *Re );

/// \brief  Check if the matrix contains only real values. 
/// Alter the matrix if it is stored as complex and only has real values.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_isReal( MTX *M, BOOL *isReal );

/// \brief  Extract the real component of column col of matrix M.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_RealColumn( const MTX *M, const unsigned col, MTX *Re );

/// \brief  Extract the imaginary component of matrix M.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Imag( const MTX *M, MTX *Im );

/// \brief  Extract the imaginary component of column col of matrix M.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_ImagColumn( const MTX *M, const unsigned col, MTX *Im );

/// \brief  If M is a real matrix, Magnitude is a copy.
/// If M is a complex matrix, Magnitude is a real matrix = sqrt( re*re + im*im ).
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Magnitude( const MTX *M, MTX *Magnitude );

/// \brief  If M is a real matrix, Phase is a zero matrix.
/// If M is a complex matrix, Phase is a real matrix = atan2(im,re).
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Phase( const MTX *M, MTX *Phase );

/// \brief  If M is a real matrix, nothing is done.
/// If M is a complex matrix, the conjugate is set.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Conjugate( MTX *M );

/// \brief  Remove a single column from the matrix.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_RemoveColumn( MTX *M, const unsigned col );

/// \brief  remove all the columns 'after' the column index given.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_RemoveColumnsAfterIndex( MTX *dst, const unsigned col );

/// \brief  insert a column into another matrix.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_InsertColumn( MTX *dst, const MTX *src, const unsigned dst_col, const unsigned src_col );

/// \brief  Add a column to the Matrix.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_AddColumn( MTX *dst, const MTX *src, const unsigned src_col );

/// \brief  Combine two matrices with the same nrows, A becomes A|B,
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Concatonate( MTX *dst, const MTX *src );

/// \brief  A becomes A|0|0|0|.. etc      
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_AddZeroValuedColumns( MTX *dst, const unsigned nr_new_cols );


/// \brief  Redimension the matrix, original data is saved in place, new data is set to zero.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Redim( MTX *dst, const unsigned nrows, const unsigned ncols );

/// \brief  Resize the matrix, original data is lost, new data is set to zero, must specify if the matrix is real or complex.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Resize( MTX *dst, const unsigned nrows, const unsigned ncols, const BOOL isReal );



/// \brief  Copy the src data to dst matrix, resize dst if possible & necessary.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_Copy( const MTX *src, MTX *dst );

/// \brief  Copy the src matrix data [m cols x n rows] to dst vector [1 col x m*n rows], resize dst if possible & necessary.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_CopyIntoColumnWiseVector( const MTX *src, MTX *dst );

/// \brief  Set the dst matrix from the static 'c' style matrix indexed by mat[i*ncols + j].
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_SetFromStaticMatrix( MTX *dst, const double mat[], const unsigned nrows, const unsigned ncols );

/// \brief  Copy the src data in column col to dst matrix, resize dst if possible & necessary.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_CopyColumn( const MTX *src, const unsigned col, MTX *dst );

/// \brief  Copy the src data in row, row, to dst matrix, resize dst if possible & necessary.
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_CopyRow( const MTX *src, const unsigned row, MTX *dst );

/// \brief  Copy the src data in row 'row' (1xn) to dst matrix (nx1), resize dst if possible & necessary.
/// dst becomes (nx1).
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_CopyRowIntoAColumnMatrix( const MTX *src, const unsigned row, MTX *dst );

/// \brief  Insert a submatrix (src) into dst, starting at indices dst(row,col).
///
/// \return TRUE if successful, FALSE otherwise.
BOOL MTX_InsertSubMatrix( MTX *dst, const MTX *src, const unsigned dst_row, const unsigned dst_col );

/**
\brief  Extract a submatrix (dst) from this matrix from (inclusive) 
        the rows and columns specified.
\code 
MTX A;
MTX B;
BOOL result;
MTX_Init( &A );
MTX_Init( &B );

result = MTX_SetFromMatrixString( &A, "[1 2 3; 4 5 6; 7 8 9]" );
result = MTX_ExtractSubMatrix( &A, &B, 1, 0, 2, 2 );
// B == [4 5 6; 7 8 9]
\endcode

\return TRUE if successful, FALSE otherwise.
*/
BOOL MTX_ExtractSubMatrix( 
  const MTX* src,          //!< The source matrix.                        
  MTX* dst,                //!< The destination matrix to contain the submatrix.
  const unsigned from_row, //!< The zero-based index for the from row.
  const unsigned from_col, //!< The zero-based index for the from column.
  const unsigned to_row,   //!< The zero-based index for the to row.
  const unsigned to_col    //!< The zero-based index for the to column.
  );


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美mv日韩mv| 青草国产精品久久久久久| 亚洲美女在线国产| 精品在线观看视频| 欧美军同video69gay| 国产精品丝袜一区| 久草热8精品视频在线观看| 欧美在线三级电影| 中文成人av在线| 国产麻豆成人精品| 欧美日韩国产免费一区二区| 1区2区3区精品视频| 国产精品1区2区3区| 日韩欧美一区在线| 天天影视色香欲综合网老头| 色综合天天做天天爱| 国产精品色在线| 国产一区二区精品在线观看| 日韩欧美成人激情| 青娱乐精品视频| 欧美一区二区三区白人| 亚洲mv大片欧洲mv大片精品| 一本色道综合亚洲| 中文字幕一区av| 成人午夜私人影院| 国产欧美精品国产国产专区| 精油按摩中文字幕久久| 精品国精品自拍自在线| 久久国产麻豆精品| 久久综合视频网| 久久av中文字幕片| 久久久久久9999| 激情五月激情综合网| 精品国产百合女同互慰| 精品午夜一区二区三区在线观看| 日韩亚洲欧美综合| 精品一区二区在线视频| 久久久99精品久久| 不卡视频一二三| 亚洲人午夜精品天堂一二香蕉| www.亚洲激情.com| 一区二区三区**美女毛片| 91毛片在线观看| 午夜精品福利视频网站| 91麻豆精品国产91久久久| 精品午夜久久福利影院| 国产人久久人人人人爽| 91在线视频网址| 亚洲综合色网站| 日韩欧美国产一区二区在线播放| 精品一区二区三区蜜桃| 亚洲欧洲国产日韩| 欧美精品色综合| 国产精品中文字幕日韩精品| 国产精品网站在线播放| 欧美色综合网站| 极品美女销魂一区二区三区 | 夜夜精品视频一区二区| 欧美日韩免费电影| 另类小说一区二区三区| 亚洲天堂福利av| 欧美成人精品高清在线播放| 国产91对白在线观看九色| 午夜精品久久久久久久久久久| 亚洲精品一区二区三区四区高清 | 精品日韩一区二区三区免费视频| 国产成人av一区二区三区在线观看| 亚洲免费高清视频在线| 日韩色视频在线观看| 99久久婷婷国产精品综合| 蜜臀av性久久久久蜜臀av麻豆| 国产精品成人网| 精品国产欧美一区二区| 91搞黄在线观看| 国产.欧美.日韩| 免费精品99久久国产综合精品| 亚洲欧洲av在线| 亚洲精品在线网站| 欧美高清视频在线高清观看mv色露露十八 | 欧美性xxxxx极品少妇| 免费观看一级特黄欧美大片| 日韩一区欧美小说| 精品播放一区二区| 欧美日韩成人激情| 色8久久精品久久久久久蜜| 韩国一区二区在线观看| 婷婷亚洲久悠悠色悠在线播放| 日本一区二区三区在线观看| 日韩一级欧美一级| 欧美亚洲一区二区三区四区| jizzjizzjizz欧美| 国产精品自拍三区| 久久99最新地址| 日本va欧美va瓶| 亚洲成人免费在线观看| 一级特黄大欧美久久久| 国产精品国产三级国产| 国产精品你懂的| 久久久国产精华| 26uuu国产一区二区三区| 欧美一区二区人人喊爽| 欧美日韩一区三区四区| 在线视频综合导航| 色婷婷久久综合| 色综合中文综合网| 成人精品视频.| 美女国产一区二区| 日韩一区欧美二区| 亚洲一二三区不卡| 香蕉久久一区二区不卡无毒影院| 综合婷婷亚洲小说| 亚洲欧美色综合| 亚洲免费毛片网站| 亚洲色图第一区| 一区二区三区日韩欧美| 亚洲一区二区视频在线观看| 亚洲综合激情网| 午夜久久电影网| 日产国产欧美视频一区精品| 日韩精品成人一区二区三区| 三级欧美在线一区| 麻豆精品视频在线| 国产在线精品一区二区三区不卡| 国产精品一级片在线观看| 国产白丝精品91爽爽久久| 不卡一二三区首页| 欧美性色黄大片| 69堂精品视频| 久久免费视频色| 国产精品不卡在线| 一区二区在线观看免费视频播放 | 国产欧美日韩另类视频免费观看| 久久品道一品道久久精品| 国产精品二三区| 亚洲mv大片欧洲mv大片精品| 麻豆91精品91久久久的内涵| 韩国v欧美v亚洲v日本v| 99精品欧美一区| 91精品国产一区二区| 久久久精品国产免大香伊| 亚洲另类春色国产| 青青草国产成人99久久| 高清不卡一二三区| 欧美日韩另类国产亚洲欧美一级| 精品免费日韩av| 亚洲麻豆国产自偷在线| 蜜桃免费网站一区二区三区| 成人福利在线看| 欧美日韩高清一区二区三区| 国产欧美综合在线| 午夜电影网亚洲视频| 国产综合久久久久影院| 欧美在线一区二区三区| 久久色在线观看| 一区二区三区精品| 国产美女主播视频一区| 欧美日韩免费一区二区三区视频| 亚洲精品一区二区在线观看| 一区二区三区日韩在线观看| 国产精品一区在线观看乱码| 欧洲在线/亚洲| 国产精品九色蝌蚪自拍| 久久成人av少妇免费| 欧美中文字幕久久| 国产精品久久久爽爽爽麻豆色哟哟 | 欧美高清hd18日本| 亚洲欧美影音先锋| 久久成人免费日本黄色| 欧美色涩在线第一页| 国产精品无人区| 欧美亚洲国产bt| 亚洲国产精品ⅴa在线观看| 免费xxxx性欧美18vr| 欧美在线观看18| 亚洲天堂免费在线观看视频| 国内精品不卡在线| 777午夜精品免费视频| 一区二区三区在线观看网站| av午夜精品一区二区三区| 久久亚洲影视婷婷| 精品一区二区三区在线播放视频| 欧美日韩精品久久久| 亚洲精品成a人| 99在线热播精品免费| 国产精品夫妻自拍| 成人精品国产免费网站| 久久久久久久久99精品| 黄一区二区三区| 久久影视一区二区| 奇米亚洲午夜久久精品| 欧美精品第一页| 午夜精品视频在线观看| 欧美色综合网站| 午夜欧美一区二区三区在线播放| 91精品福利视频| 亚洲国产sm捆绑调教视频| 欧美少妇性性性| 强制捆绑调教一区二区| 欧美刺激脚交jootjob| 久久av资源网|