Skip to content

Commit

Permalink
ENH: Prepare for merge with svn master.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmjohnson committed Mar 8, 2012
1 parent e2b6b1d commit 0c1a7ba
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
1 change: 1 addition & 0 deletions ANTS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ cmake_minimum_required(VERSION 2.8.2)
set(ANTS_TEST_BIN_DIR ${CMAKE_BINARY_DIR}/Examples)

add_subdirectory(Examples)

###
# Perform testing
###
Expand Down
2 changes: 2 additions & 0 deletions Examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ set(DATA_DIR ${CMAKE_CURRENT_LIST_DIR}/Data)
set(R16_IMAGE ${DATA_DIR}/r16slice.nii.gz)
set(R64_IMAGE ${DATA_DIR}/r64slice.nii.gz)

if (0) ## This test is not yet completed.
add_test(antsRegistrationTest1 ${TEST_BINARY_DIR}/antsRegistration -d 2
-m mi[ ${R16_IMAGE}, ${R64_IMAGE} , 1 , 20, Regular , 0.05 ]
-t affine[ 1.0 ]
Expand All @@ -352,6 +353,7 @@ add_test(antsRegistrationTest1 ${TEST_BINARY_DIR}/antsRegistration -d 2
-f 3x2x1
-u 1
-o [xtest_CC,xtest_CC.nii.gz,xtest_CC_inv.nii.gz] )
endif()


#set(CurrentExe "GlamorousGlue")
Expand Down
16 changes: 12 additions & 4 deletions Utilities/antsSCCANObject.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -2035,10 +2035,18 @@ TRealType antsSCCANObject<TInputImage, TRealType>
std::cout << " You need to define a reference matrix " << std::endl;
exit(1);
}
this->m_VariatesP.set_size( this->m_MatrixP.cols(), n_vecs );
this->m_VariatesP.fill(0);
VectorType intercept( this->m_MatrixP.cols(), 1);
this->m_VariatesP.set_column( 0, intercept );
MatrixType A;
MatrixType rmat = this->m_OriginalMatrixR.extract(
this->m_OriginalMatrixR.rows(), this->m_OriginalMatrixR.cols() - 1, 0, 1 );
rmat = this->NormalizeMatrix( rmat );
unsigned int extra_cols = 0;
this->m_VariatesP.set_size( this->m_MatrixP.cols(), n_vecs + extra_cols );
this->m_VariatesP.fill( 0 );
VectorType intercept( this->m_MatrixP.cols(), 1 );
if( extra_cols > 0 )
{
this->m_VariatesP.set_column( 0, intercept );
}
RealType lmerror = 0.0;
VectorType original_b = this->m_MatrixR.get_column( 0 );
for( unsigned int colind = extra_cols; colind < this->m_VariatesP.cols(); colind++ )
Expand Down

0 comments on commit 0c1a7ba

Please sign in to comment.