Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8391983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:24:00+00:00 2026-06-09T19:24:00+00:00

I am coding an computer vision program using OpenCV library. In my program, I

  • 0

I am coding an computer vision program using OpenCV library. In my program, I “typedef” a type called “CLabPixelType” by “Vec3d”, which is to represent a color pixel in Lab color space. However, I encounter the following problem when I compile the code by g++ under Mac OS X Mountain Lion with XCode 4.4.1.

g++ ${CXXFLAGS} main.cpp slic.cpp slic_contrast.cpp -o sclbp -I/opt/local/include 
-L/opt/local/lib -lopencv_core.2.4.2 -lopencv_imgproc.2.4.2 -lopencv_highgui.2.4.2

In file included from /usr/include/c++/4.2.1/backward/map.h:59,
             from lxp_factory.h:8,
             from cmd_parser.h:4,
             from main.cpp:2:
/usr/include/c++/4.2.1/backward/backward_warning.h:32:2: warning: #warning This 
file includes at least one deprecated or antiquated header. Please consider using 
one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples 
include substituting the <X> header for the <X.h> header for C++ includes, or
<iostream> instead of the deprecated header     >>><iostream.h>. To disable this
warning use -Wno-deprecated.

In file included from lxp_framework.h:5,
             from lxp_factory.h:5,
             from cmd_parser.h:4,
             from main.cpp:2:
img_interpolater.h:10: error: ‘Vec3d’ does not name a type
img_interpolater.h:45: error: ‘CLabPixelType’ does not name a type
img_interpolater.h:97: error: ‘CLabPixelType’ does not name a type

I do not know why it shows “‘Vec3d’ does not name a type? I checked the other questions about such “XX does not name a type” error in Stackoverflow but failed to find an answer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:24:02+00:00Added an answer on June 9, 2026 at 7:24 pm

    It is a while back when I used opencv library the last time, but I think the problem may be that you don’t take into account namespace cv

    Try adding using namespace cv, or using namespace cv::CLabPixelType or just qualify the name fully each time you use it like typedef cv::CLabPixelType Vec3d.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am coding a computer vision program, which is using OpenCV 2.4, by Xcode
Well, as the title suggests, I am coding a game which is called Morabaraba.
I'm coding a Java application which when operational will start when the headless computer
Coding Platform ASP.NET 4.0 WebForms on IIS7.5 If I request a page blahblah.aspx which
I'm new to computer coding and have just finished coding an app and tested
I am an almost-graduating computer science student, and throughout my coding career, I've found
I'm writing a program which uses regex to match incoming data. The regex works
I'm coding a form using PHP and jQuery. I have a file upload field
OK, here is the szenario: I'm coding a .NET 3.5 WPF-Aapplication, using the Microsoft
I have been coding an application which renders tiles and GUI and all that.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.