473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

How to filter the points to get only the left most and right most?

20
Hi all,
Kindly need your attention here.
Let say,
Expand|Select|Wrap|Line Numbers
  1. n = 0;  // number of corner points detected
  2. if (......)
  3. {
  4. corner_list[n].x = j;  //x coordinate
  5. corner_list[n].y = i;  //y coordinate
  6. n++;
  7. :
  8. :
  9. }
  10.  
"m7.pgm"-->attached
This is the image and the marking at the contour are the detected points.
"m-004-1.pgm"-->attached
I want to get only the left most and right most points as corner. How can i write the codes to keep only these 2 corner points for every image?
From the left side, we can see there are two points with the same x-coordinate. From the right there are 3 or 4 points at the same x-coordinate.
How can we program to choose the most middle position for the left most and right most corner points?

Please help or give some ideas.
Thank you.

Best regards,
Tommy
Nov 27 '07 #1
4 1296
sicarie
4,677 Expert Mod 4TB
TommyC-

I certainly hope nobody would open a zip file from an internet site, but just in case someone would, I have removed the ones you have posted. Please post text or image files as attachments, not zips.
Nov 27 '07 #2
TommyC
20
I suppose if .zip file is allowed to be uploaded in this forum, i can't understand why it has been removed. My original images are in .pgm which is not supported in this forum. I can certain you that, there are lot of people will open the zip file. Anyway, thanks for your suggestion, i have converted the images into bmp. Thanks again.
Attached Images
File Type: bmp m7.bmp (13.6 KB, 130 views)
Nov 28 '07 #3
sicarie
4,677 Expert Mod 4TB
I suppose if .zip file is allowed to be uploaded in this forum, i can't understand why it has been removed.
Because the software for this site allows it, that does not mean the site does. However, that is a good point, and I will add it to the Suggestions forum.
Nov 28 '07 #4
TommyC
20
Anyone can help in solving this problem?
Nov 28 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: dick | last post by:
I am just trying to print/report the results of a "filter by selection" which is done by right-clicking a form, filling in values, and "applying the filter." I have searched the newsgroups, and...
1
by: Keith | last post by:
A2003, Xp Pro. I've designed a form which contains 6 of combos. Three on the left are set up to select fields from a query, three on the right are set up to select values from the corresponding...
4
by: j | last post by:
In a footnote in the c99 standard the following is labeled as undefined: a = i; And in the second clause of section 6.5 the following is stated: "Between the previous and next sequence...
7
by: akarl | last post by:
Hi all, Why do I get a warning from gcc with the following program? $ cat test.c #include <stdio.h> int f(int n) { return n;
0
Yika
by: Yika | last post by:
Hello all! :) I have a bit of a problem.. kind of! I have a table with several columns, of course, and most of them are searchable. Basically what I did, was if you entered any text, it would...
4
by: Daniel Kraft | last post by:
Hi all! I do not have a standard-document right next to me to cite from, but as far as I know, doing something like: a()=b()=c()=d(); or foo(d()+c()+b()+a()); has a fixed evaluation order...
0
by: sjickells | last post by:
Hi I am having a problem using asp:TextBox's in a transparent table. I have a background image on the page and a table in the middle of the page. I have set the background colour of the table...
94
by: mlcampeau | last post by:
I have a report (JobVacanciesOnly) that has a subreport (JobVacanciesOnlySR) that are based on two separate queries. MY - JobVacancyJobs SELECT Job.Code, Job.Title, Job.Grade, Grade.Minimum,...
1
by: woodey2002 | last post by:
Hi Everyone and many thanks for your time.. I am trying to begin access and a bit of VBA i am enjoying it but I have a annoying problem I just can’t get any where on. My databse mostly includes...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...

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.