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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:48:02+00:00 2026-05-15T04:48:02+00:00

As part of an application that I’m developing for Android I’d like to show

  • 0

As part of an application that I’m developing for Android I’d like to show the user an edge-detected version of an image they have taken (something similar to the example below).

alt text

To achieve this I’ve been looking at the Sobel operator and how to implement it in Java. However, many of the examples that I’ve found make use of objects and methods found in AWT (like this example) that isn’t part of Android.

My question is then really, does Android provide any alternatives to the features of AWT that have been used in the above example? If we were to rewrite that example just using the libraries built into Android, how would we go about it?

  • 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-05-15T04:48:03+00:00Added an answer on May 15, 2026 at 4:48 am

    since you don’t have BufferedImage in Android, you can do all the basic operations yourself:

    Bitmap b = ...
    width = b.getWidth();
    height = b.getHeight();
    stride = b.getRowBytes();
    for(int x=0;x<b.getWidth();x++)
      for(int y=0;y<b.getHeight();y++)
        {
           int pixel = b.getPixel(x, y);
           // you have the source pixel, now transform it and write to destination 
        }
    

    as you can see, this covers almost everything you need for porting that AWT example. (just change the ‘convolvePixel’ function)

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

Sidebar

Related Questions

I have a small lightweight application that is used as part of a larger
We have a windows application that contains an ActiveX WebBrowser control. As part of
I have an application that I have to run as Administrator. One small part
I'm developing a Flex 2 application, and I noticed that part of the library
For part of my application I have a need to create an image of
We have an application that is being moved to .NET. One part of the
I'm currently working with a part of my application that uses Dynamic Web User
I have a ColdFusion application that's behind an ISA Server. Part of the application
I have been building a Rails application that performs accounting functionality. As part of
I have an application that I'm developing in Visual Studio 2010 that utilizes a

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.