Click here to Skip to main content
15,913,292 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVC++: Can't manipulate forms Pin
f907334124-Mar-12 13:50
f907334124-Mar-12 13:50 
QuestionRe: VC++: Can't manipulate forms Pin
David Crow24-Mar-12 16:00
David Crow24-Mar-12 16:00 
AnswerRe: VC++: Can't manipulate forms Pin
Member 875813424-Mar-12 21:57
Member 875813424-Mar-12 21:57 
QuestionRe: VC++: Can't manipulate forms Pin
David Crow25-Mar-12 14:50
David Crow25-Mar-12 14:50 
GeneralRe: VC++: Can't manipulate forms Pin
Albert Holguin25-Mar-12 14:59
professionalAlbert Holguin25-Mar-12 14:59 
GeneralRe: VC++: Can't manipulate forms Pin
lishihong10826-Mar-12 15:37
lishihong10826-Mar-12 15:37 
AnswerRe: VC++: Can't manipulate forms Pin
Wes Aday24-Mar-12 16:59
professionalWes Aday24-Mar-12 16:59 
QuestionQuestion regarding std::Vector.... Pin
Raza568024-Mar-12 9:30
Raza568024-Mar-12 9:30 
Hi,

I am working with images and computing radon transform for an object. the function that computes the transform accepts vector as input:

C++
pixel p;
vector<pixel> segObj  //segObj is the object segmneted from the image


pixel is a user-defined struct defined as:
C#
struct pixel
{
    float x, y;  //x,y coordinates of the pixel
};


Currently, I am doing an element wise assignment to the vector:

C++
for(int ix=0; ix < element_count; ix++)
           {
              {
               f.x = xCoordArray[ix];
               f.y = yCoordArray[ix];
               segObj.push_back(f);
              }
           }

//xCoordArray and yCoordArray are computed separately

The for loop makes it slow when dealing with large images. Is there a way to assign xCoordArray and yCoordArray directly to
C++
vector<pixel>segObj


I am not expereinced with the use of vectors so any help would be appreciated
Thanks
AnswerRe: Question regarding std::Vector.... Pin
André Kraak24-Mar-12 9:55
André Kraak24-Mar-12 9:55 
GeneralRe: Question regarding std::Vector.... Pin
Raza568025-Mar-12 3:53
Raza568025-Mar-12 3:53 
GeneralRe: Question regarding std::Vector.... Pin
«_Superman_»25-Mar-12 5:12
professional«_Superman_»25-Mar-12 5:12 
GeneralRe: Question regarding std::Vector.... Pin
Raza568025-Mar-12 5:26
Raza568025-Mar-12 5:26 
AnswerRe: Question regarding std::Vector.... Pin
Chris Losinger26-Mar-12 4:13
professionalChris Losinger26-Mar-12 4:13 
QuestionHow to set build event Macros in VC++ 6.0? Pin
Falconapollo23-Mar-12 17:56
Falconapollo23-Mar-12 17:56 
AnswerRe: How to set build event Macros in VC++ 6.0? Pin
«_Superman_»23-Mar-12 20:33
professional«_Superman_»23-Mar-12 20:33 
GeneralRe: How to set build event Macros in VC++ 6.0? Pin
Falconapollo23-Mar-12 20:45
Falconapollo23-Mar-12 20:45 
GeneralRe: How to set build event Macros in VC++ 6.0? Pin
Albert Holguin24-Mar-12 8:00
professionalAlbert Holguin24-Mar-12 8:00 
Questionc++ win32 project file - a file like a visual studio project file Pin
jkirkerx23-Mar-12 6:32
professionaljkirkerx23-Mar-12 6:32 
AnswerRe: c++ win32 project file - a file like a visual studio project file Pin
Chris Losinger23-Mar-12 6:46
professionalChris Losinger23-Mar-12 6:46 
AnswerRe: c++ win32 project file - a file like a visual studio project file Pin
David Crow23-Mar-12 6:54
David Crow23-Mar-12 6:54 
GeneralRe: c++ win32 project file - a file like a visual studio project file Pin
jkirkerx23-Mar-12 7:33
professionaljkirkerx23-Mar-12 7:33 
GeneralRe: c++ win32 project file - a file like a visual studio project file Pin
Randor 23-Mar-12 12:36
professional Randor 23-Mar-12 12:36 
GeneralCreateFile Pin
jkirkerx23-Mar-12 12:57
professionaljkirkerx23-Mar-12 12:57 
GeneralRe: CreateFile Pin
Randor 23-Mar-12 13:10
professional Randor 23-Mar-12 13:10 
GeneralRe: Structure the data contents of the file. Pin
jkirkerx23-Mar-12 13:31
professionaljkirkerx23-Mar-12 13:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.