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

  • Home
  • SEARCH
  • 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 8148541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:39:58+00:00 2026-06-06T14:39:58+00:00

I am trying to implement an edge detection method. Since it is impossible to

  • 0

I am trying to implement an edge detection method. Since it is impossible to copy here all lines I have copied just related codes. When I compile, I get this error:

Unable to cast object of type ‘Emgu.CV.Structure.Gray’ to type ‘System.IConvertible’.

I have already searched it but I couldn’t find something useful.
Is there any way to convert MyImage from Gray to Double?

Thanks in advance

Image<Gray,Byte> MyImage = null;
public Gray input_i(int x, int y, int z)
{
    Gray input;
    input = MyImage[x,y];
    return input;
}

result[I] += hueckel_func.HueckelDisk(point_x, point_y, I) * Convert.ToDouble(input_i(point_a, point_b, I));
  • 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-06T14:39:59+00:00Added an answer on June 6, 2026 at 2:39 pm

    Just get the Intensity property, it’s already a double:

    result[I] += hueckel_func.HueckelDisk(point_x, point_y, I) * input_i(point_a, point_b, I).Intensity;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

All I am currently trying implement something along the lines of dim l_stuff as
I'm trying to implement hough transform for lines in matlab. And I have been
I'm a beginner in CUDA and I'm trying to implement a Sobel Edge detection
I have this weird kind of error. I am trying implement basic Euclidean algorithm
I have an edge map extracted from edge detection module in OpenCV (canny edge
i have been trying to implement a bottombar for my site, however the vision
I've a webbrowser control and I'm trying implement IDocHostUIHandler in the container. However since
Trying to implement what I thought was a simple concept. I have a user
i'm new to c++ and have been trying to implement the bellman ford algorithm,
I have a basic 8-bit ALU described in Verilog. I am trying to implement

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.