**vector of vector of vectors**Hi,
I'm having a problem that's driving me nuts right now.
I wanted to represent data as a
vector<vector<vector<unsigned short> > >
Now I've been having alot of trouble initializing and
accessing elements for that type.
I can't seem to initialize like blah(10,10,10) to make each
vector length 10, so instead I did blah(10,(10,10)) but even
though that compiles I get runtime errors if I ever do
something likeblah.at(i).at(j).at(k), no matter what the
values of i j and k.
Is there a clean way to do what I want it to do or should I
just not try it this wa...

**issues with vector of vector of vectors**Gurus,
Is this possible to do? Do any of you see any issues?
typedef pair<string, string> myPair;
typedef vector<myPair> myPairVector;
typedef vector<myPairVector> myPairVectorColl;
typedef vector<myPairVectorColl> myPairVectorCollCollection;
Now when I initialize a variable of myPairVectorCollCollection, the
size of this vector is unusually large( both in the debug as well as
release versions )
And when I look at the stack trace during debugging, I am going
nuts...this is how it shows up( even though the vector has only two
elemts):
_Mylast = [3291966109]([...](),[...

**Vector of vector or matrix of vector**Hi all;
I want to have a vector which each component of vector.
For example I want to have vector of n random matrix of dimension m.
How to get this??
Thanks
Hypermatrices (help hypermatrices) should be the answer.
Eric.
On Apr 18, 8:44 pm, high-sco...@caramail.com wrote:
> Hi all;
> I want to have a vector which each component of vector.
> For example I want to have vector of n random matrix of dimension m.
>
> How to get this??
>
> Thanks
...

**A Vector of Vectors**Hi,
This problem could just as easily generalize to a vector of matrices. Here it is,
I am having a bit of difficulty constructing a vector of vectors of varying lengths. That is,
T1 is a mx1 vector
T2 is a nx1 vector
..
..
..
TX is a zx1 vector
where X,m,n,z are all positive integers. Ideally, if these were all the same length, I would just construct T = [T1 T2 ... TX] such that I could access Tj with T(:,j). But if these vectors are different lengths, how would I efficiently put them into one vector or cell such that I could index each vector easily? I realize I could zero pad each one ap...

**vector of vectors**I wanted to make a vector of vectors of int so I tried following :
#include<iostream>
#include<vector>
int main()
{
vector<vector<int> >vec;
for(int i=0;i<2;i++)
{
vector<int>newVec;
vec.push_back(newVec);
for(int j=0;j<3;j++)
{
std::cin>>num;
vec[i].push_back(num); // Here vec[i] works but newVec.push_back
(num) doesn't work. Why?
}
}
}
happy wrote:
> I wanted to make a vector of vectors of int so I tried following :
>
> #include<iostream>
> #include<vector&g...

**Raster to Vector**Hello All,
What do you all do for raster to vector conversion.
I need to show my clients logo in my model, and have used Scan2CAD before
with limited success, although I haven't used it since V4 or 5.
Any advice is appreciated.
TIA,
Muggs
Deltacad, Wintopo, Wintopo Pro.
Muggs wrote:
> Hello All,
>
> What do you all do for raster to vector conversion.
> I need to show my clients logo in my model, and have used Scan2CAD before
> with limited success, although I haven't used it since V4 or 5.
>
> Any advice is appreciated.
>
> TIA,
> Muggs
>
&g...

**Raster to Vector**Hello there,
A have a TIF image and I want to make a raster to vector conversion of
some DN values.
I'm using rtf_doit:
values = [4096] ; the DN I want to convert
l_name = [values]
out_names = dir+'testimg_' + $
strcompress(string(values),/remove_all) + '.evf'
in_memory = lonarr(n_elements(values))
envi_toggle_catch
envi_doit, 'rtv_doit', $
fid=fid, pos=pos, dims=dims, $
values=values, l_name=l_name, $
in_memory=in_memory, $
out_names=out_names
But I have no success... I have the message:
% Subscript range values of the form low:high must be >= 0, <...

**Vectors in a vector**Hi all,
How can i have a vector like: v=[1, 3, [1, 5]]? it cann't work to have
this vector by u=[1, 5] and v=[1, 3], and v(1, 3)=u. It'll appear the
error message:
??? Subscripted assignment dimension mismatch.
Can anyone help me with that?
Thanks a lot.
Samuel@Taiwan
On Wed, 20 Sep 2006 18:39:13 -0700, samuel wrote:
> Hi all,
>
> How can i have a vector like: v=[1, 3, [1, 5]]? it cann't work to have
> this vector by u=[1, 5] and v=[1, 3], and v(1, 3)=u. It'll appear the
> error message:
>
> ??? Subscripted assignment dimension mismatch....

**Vector of Vectors.**I'm having a bit of trouble manipulating an element of a vector of
vectors. I'm using GNAT GPL 2008. Here is a small program to illustrate
the issue:
with Ada.Containers.Vectors;
procedure Check is
package Integer_Vectors is
new Ada.Containers.Vectors
(Index_Type => Natural,
Element_Type => Integer);
package Nested_Vectors is
new Ada.Containers.Vectors
(Index_Type => Natural,
Element_Type => Integer_Vectors.Vector,
"=" => Integer_Vectors."=");
IV : Integer_Vectors.Ve...

**Raster to Vector**Hi all,
We are a small company with 25 people on board, providing services
related to CAD drawing conversion.
What I would like to know is the views of experienced design/drafting
personnnel out here, relating to automatic raster to vector conversion
softwares. We all know that till date there is no software, which can
come anywhere close to manual drafting the old paper drawings to
perfect CAD output. But with the current rate of improvement on
saftware front, when can we expect such softwares which can have 95
percent accuracy to hit the market.
We mainly cater of US market. ...

**raster to vector**do you know any :raster to vector, free utility.
I want it to be compatible with ARC-GIS.
thanks.
����������������������������������������������������������������������������
����������������������������������������������������������������������������
���������������������������������������������������������������
Kavroudakis Dimitrios
����������������������������������������������������������������������������
����������������������������������������������������������������������������
���������������������������������������������������������������
Computer Info Systems (Ameri...

**Free memory allocate by a STL vector, vector of vector, map of vector**Hi,
I have the following code which frees memory allocate by a STL vector,
vector of vector, map of vector.
I would like to know if I indeed free all the memory (i.e. no memory
leak).
Thanks for any advice:
/* From Effective STl */
struct DeleteObject {
template<typename T>
void operator()(const T* ptr) const {
delete ptr;
}
};
typedef vector<A*> AVector;
// free a vector of 'A*'
void f4(AVector& aVector) {
for_each(aVector.begin(), aVector.end(), DeleteObject());
aVector.clear();
}
// free a vector of vector of 'A*'
void f4(vector<AVector*&...

**raster to vector conversion**hi,
i am looking for an idl routine that converts raster images into
vector data. does anybody know where i can find such a vectorization
routine for IDL?
thanx
aesculapx wrote:
> hi,
> i am looking for an idl routine that converts raster images into
> vector data. does anybody know where i can find such a vectorization
> routine for IDL?
> thanx
I don't know of any such thing for IDL. (But then, I don't know much.
IDL does have a lot of image tools.)
I have used raster->vector software outside IDL. The results were terrible.
Why do you want to do this? Is there...

**Raster / Vector conversions**Hello,
Does anyone out there have any experience using raster/vector conversion
software to create geometry from a scanned image. I downloaded a trial
version of Algolab software and it seems ok but there are not many editing
tools, and I have not explored others. I am trying to make sketch geometry
from scanned images of curvy shapes. Multilines are causing errors in sketch.
Others must have been here.
Thanks in advance,
Andrew Grove
have a look at.
http://www.arborimage.com
they have the best raster to vector conversion technology on the market..
....ed russell
Michigan USA
Andrew Gr...

**Raster and Vector Images.**My grandson asked me the following question which I am unable to answer.
Any help from the knowledgable frequenters of this group will be greatly
appreciated.
"Can you (in Paint Shop Pro) change a raster image to a vector image?"
Ken Russell
Sydney, Australia
I'm afraid not, Rusty but you can have a look at these links
http://tinyurl.com/idg1
Kiri
"Rusty" <rusty@theseams.com.au> schreef in bericht
news:3f260ded$0$1208$afc38c87@news.optusnet.com.au...
> My grandson asked me the following question which I am unable to answer.
> Any help from the know...

**Vector to raster algorithm**I was wondering what are the standard (and also the fastest) algorithms for
rasterizing a polyline?
I have a large amount of line segments (between 10 and 5000). I want to
efficiently but very accurately rasterise them.
Also, what is a good way of choosing the the size of the "pixels" in my
matrix?
Hamish Dean <h.dean@xtra.co.nz> wrote:
> I was wondering what are the standard (and also the fastest) algorithms for
> rasterizing a polyline?
Depends on what kind of polyline you're working with --- finite width
with defined cap and join styles, or "infinitely th...

**Linking raster and vector**Hello all,
I need to extract information of each pixel by different land cover
classes. I have a land cover map in a vector format. Now, I need to
associate this vector information to the image file. So, I rasterized
my shape file with the resolution of my image. But, my dimensions of
the rasterized land cover maps and the image are not same. I tried to
subset my image with the rasterized land cover map, yet the dimensions
are not same.
Is there any other way to solve this issue without rasterizing the
shape file. Can i get around this issue with ROI.
Thank you
...

**vector or raster layer**I'm still learning but am determined to master layers.
What is the most common layer to use (Raster or Vector), if a tutorial just
says "Create a new layer". I am learning to do a collage with 4 photos - in
a soft kind of result so they blend with each other.
I have found a beg tutorial on collages, but now I am stuck. It is written
for PSP 5 and I am trying to do it in PSP 7.
Thanks for any help.
"meme" <somene@somewhere.com> wrote in message
news:pjfne.560$F95.3572@nnrp1.ozemail.com.au...
> I'm still learning but am determined to master layers.
&g...

**Raster to Vector conversion**Hi all,
I am working on a project to create a tool which takes a 0-1 bitmap
file
and produces an orthogonal vectorization out of it.
The bitmap file is going to be the parcel map of a country. So what I
need
to extract out of it is the boundaries between the provinces/states.
I need to do that in an orthogonal way. Which means, every vector is
either
horizontal or vertical.
And I need to further process the vectorization for simplification. I
dont
really want to have a hundred different vectors representing each
province.
I know that there are software applications like...

**raster to vector #2**Hy all,
I have, irregularly need to make of the conversions from raster designs to
vectorial designs(copying them by hand - even if amount the files into
AutoCAD - is an activity that I cannot more make, seen the time I, and my
collaborators, employ to make it. Time we prefer to use for more
interesting activities and more remunerative).
I would want to know, if someone of you, is to acquaintance of companies in
which it is possible to have this type of service, even on-line, and, if, it
is has acquaintance of their cost.
The dimension of the drawing, in average, are A0, to several ...

**Raster and Vector Images.**My grandson asked me the following question which I am unable to answer.
Any help from the knowledgable frequenters of this group will be greatly
appreciated.
"Can you (in Paint Shop Pro) change a raster image to a vector image?"
Ken Russell
Sydney, Australia
I'm afraid not, Rusty but you can have a look at these links
http://tinyurl.com/idg1
Kiri
"Rusty" <rusty@theseams.com.au> schreef in bericht
news:3f260ded$0$1208$afc38c87@news.optusnet.com.au...
> My grandson asked me the following question which I am unable to answer.
> Any help from the know...

**vector or raster layer**I'm still learning but am determined to master layers.
What is the most common layer to use (Raster or Vector), if a tutorial just
says "Create a new layer". I am learning to do a collage with 4 photos - in
a soft kind of result so they blend with each other.
I have found a beg tutorial on collages, but now I am stuck. It is written
for PSP 5 and I am trying to do it in PSP 7.
Thanks for any help.
"meme" <somene@somewhere.com> wrote in message
news:pjfne.560$F95.3572@nnrp1.ozemail.com.au...
> I'm still learning but am determined to master layers.
&g...

**how to ensure that a vector is a column vector or row vector?**I don't have to ask this if the Matlab is smart enough; but it isn't.
for example,
x./y
if x is a row vector and y is column vector, or vice versa, the Matlab will
report error...
So I want to know a way to ensure that a vector is column vector or a row
vector...
Thansk
If you just want everything to be the same (row or column)
a = rand(100,1);
b = rand(1,100);
a = a(:);
b = b(:);
Mike wrote:
>
>
> I don't have to ask this if the Matlab is smart enough; but it
> isn't.
>
> for example,
>
> x./y
>
> if x is a row vector and y is column ...