473,503 Members | 2,259 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Magic Wand Implementation

Hi there,

I am trying to implement a function similar to the 'magic wand' tool in
Photoshop to find the boundary of similar-graylevel area starting from a
point within it. So basically I want to start from a pixel in the region
which has a very similar gray level not varying by more than 5 gray values
and find its ends in all directions.

Could you please tell me where I can find such an implementation or an
efficient algorithm to do the same.

Thanks a ton,
Soumyadip.
Jan 21 '06 #1
2 4093
"Soumyadip Rakshit" <so**************@gmx.net> wrote in message
news:It********@bath.ac.uk
Hi there,

I am trying to implement a function similar to the 'magic wand' tool
in Photoshop to find the boundary of similar-graylevel area starting
from a point within it. So basically I want to start from a pixel in
the region which has a very similar gray level not varying by more
than 5 gray values and find its ends in all directions.

Could you please tell me where I can find such an implementation or an
efficient algorithm to do the same.

Thanks a ton,
Soumyadip.

Try asking in comp.graphics.algorithms

--
John Carson
Jan 21 '06 #2
Thanks .. I'll do that :)!

"John Carson" <jc****************@netspace.net.au> wrote in message
news:43**********************@un-2park-reader-01.sydney.pipenetworks.com.au...
"Soumyadip Rakshit" <so**************@gmx.net> wrote in message
news:It********@bath.ac.uk
Hi there,

I am trying to implement a function similar to the 'magic wand' tool
in Photoshop to find the boundary of similar-graylevel area starting
from a point within it. So basically I want to start from a pixel in
the region which has a very similar gray level not varying by more
than 5 gray values and find its ends in all directions.

Could you please tell me where I can find such an implementation or an
efficient algorithm to do the same.

Thanks a ton,
Soumyadip.

Try asking in comp.graphics.algorithms

--
John Carson

Jan 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1913
by: Jacek Generowicz | last post by:
I am writing an extension type, and wish to add some magic methods which are not catered for by the tp_<whatever> slots (eg tp_init -> __init__) in PyTypeObject. My methods seem to work correctly...
0
1715
by: Michael Spencer | last post by:
Wow - Alex Martelli's 'Black Magic' Pycon notes http://www.python.org/pycon/2005/papers/36/pyc05_bla_dp.pdf include this gem: > Functions 'r descriptors > def adder(x, y): return x + y > ...
19
5140
by: youpak2000 | last post by:
Are MAGIC numbers always bad? Using magic numbers (constant numbers) in programs are generally considered a bad programming practice, and it's recommended that to define constants in single,...
51
4393
by: Kuku | last post by:
What is the difference between a reference and a pointer?
2
3019
by: Simon Tamman | last post by:
Just wondering if anyone knows how this component works. If you set it up in the context of an Application.Run it works on it's worker thread but it updates the progress on the UI thread. My...
2
1613
montzter
by: montzter | last post by:
Hi, Is someone in the forum know the capabilities of the CATC Merlin's Wand? The scripting stuff, commant genration and others.... Thanks
16
2572
by: per9000 | last post by:
Hi, I recently started working a lot more in python than I have done in the past. And I discovered something that totally removed the pretty pink clouds of beautifulness that had surrounded my...
2
2561
by: jyck91 | last post by:
i have done the magic square: #include <stdio.h> #include <stdlib.h> #include <string.h> #define SIZE 13 main() { FILE *fp; int i, j, n, row, column;
19
1929
by: Name and address withheld | last post by:
I am trying to understand how ustr (http://www.and.org/ustr/design) works. Its a string-handling library for C, and it stores strings in the following struct, called a "magic struct" struct Ustr...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7357
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7012
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5598
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.