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 8944271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:59:10+00:00 2026-06-15T11:59:10+00:00

I am trying to develop some codes of image processing. I want to design

  • 0

I am trying to develop some codes of image processing.
I want to design a different API which could support different type,
like int, double, float, char and others without the help of dynamic polymorphism
Because I find out that when you deal with image processing, dynamic polymorphism
would slow you down, use primitive types like int or char is the fastest
solution, but it is very inconvenient when I want to design different API according
to those types.

Besides, I want to do something like this without the burden of dynamic polymorphism

public static void convert_color(
        final int[] sp, final int[] dp,
        final int Xres, final int Yres,
                    Strategy strategy)
{
    \\....
}

Some algorithms would suffer from the performance penalty of strategy(dynamic polymorphism)
I need to copy and paste just because the strategy are differents.

It is very difficult to design a high performance and flexibility image processing with
my current level, do you have a better solution to gain performance and flexibility?

  • 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-15T11:59:11+00:00Added an answer on June 15, 2026 at 11:59 am

    I suggest you at how Trove4j solves this problem as it generates collections for primitives. You can also use their collections.

    I would start with a “super type” e.g. double and optimise the code where you find it makes a difference.

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

Sidebar

Related Questions

I am trying to develop some very complex applications based on Image processing. I
HI, I am trying to develop a form which has some user controls ,
Im trying to develop a simple java code which will upload some contents from
I'm trying to develop an image focusing algorithm for some test automation work. I've
I am trying to develop a script in Python which would function like the
intro Hello, I'm trying to develop some plugin or / and object in javascript,
I develop some unit tests with trying to connect to the Derby internal database
I need some help! Please. I am trying to develop a very very simple
I am trying to develop an application for my localhost on which I can
I was trying to develop a video management software for which I was evaluating

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.