[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help with pfstools octave 4 port
From: |
Orion Poplawski |
Subject: |
Help with pfstools octave 4 port |
Date: |
Tue, 7 Jul 2015 11:28:09 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 |
I'm looking at building pfstools with octave4 in Fedora Rawhide and getting
(after changing Octave_map to octave_map):
pfsget.cpp: In function 'octave_value_list Fpfsget(const octave_value_list&,
int)':
pfsget.cpp:111:47: error: no matching function for call to
'octave_map::assign(const char*, Matrix&)'
channels.assign( ch->getName(), mat );
^
Code is:
// Add channels as matrices to pfs stream struct
{
octave_map channels;
pfs::ChannelIteratorPtr cit( frame->getChannelIterator() );
while( cit->hasNext() ) {
pfs::Channel *ch = cit->getNext();
Matrix mat( ch->getRows(), ch->getCols() );
int index = 0;
for( int r = 0; r < ch->getRows(); r++ ) // Copy channel data to
Octave matrix
for( int c = 0; c < ch->getCols(); c++ ) {
mat(r,c) = (*ch)(index++);
}
channels.assign( ch->getName(), mat );
}
pfsStream.assign( "channels", channels );
}
Any help with how to fix would be greatly appreciated.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane address@hidden
Boulder, CO 80301 http://www.nwra.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Help with pfstools octave 4 port,
Orion Poplawski <=