Any way in getting the diameter of an oval
hi
I am wanting to write a piece of code that will calculate the diameter of an oval, but I am unsure how I can do this. I have written code that gets the image of the oval and creates an array containing all the pixel info of the image. What to do next I am unsure. the code will need to be able to calculate the diameter of both filled ovals and unfilled ovals. Any ideas?
sorry if I haven't explained it clearly enough., any questions I'll try to answer.
Thanks
what u want is pretty tough. U want to write a progam that can detect if there is an oval in your image. basically by checking the pixels in the array, it must determine if there is an oval (say the oval is black colored while the background of the image is white) by studying the locations of the black colored pixels.
If u want to find if a rectagle exist and find its dimension, it is easier than an oval.
but in both case(rectangle and oval) , it will require complex algorith.
the algorithm will fail if the oval was dram in the image using anti-aliasing in which the edge between the oval and the background is not sharp.
Similar Messages
-
Hi All,
I need to obtain an image's attributes such as dimensions (height, width in pixels) without placing image in indesign document.
I have full path of the image (say abc.jpg is stored at c:\my pic\abc.jpg).
I have obtained the IDFile for this image, tried getting size using GetFileSize() which correctly return size in bytes.
Is there any way to get the height/width of image without importing it in the indesign document.
Please, give me some hints. I have spent quite a lot time digging in CHM. I have searched in FileUtils, IDFile API's but found no method which serves this purpose.
At this point I am clueless where to search next.
Any help will be appriciated.
Just a point to mention, I am able to get image height and width for an image in indesign doc though Its not my requirement.
Thnx,
D.You might be able to examine the contents of the PlaceGun after calling kImportAndLoadPlaceGunCmdBoss without actually placing the image in a document. Not sure, but would be worth looking at.
Otherwise you will probably have to write platform specific code, ideally with a generic platform-independant wrapper (see SDKSamples/paneltreeview/PlatformFileSystemIterator).
For the Mac, look at CGImageGetWidth() etc., not sure what the best option is for windows.
Perhaps Quicktime could provide you with a platform independant solution. -
When using an external (ergonomic mouse) is there any way to get the wheel to scroll one full page at a time? Much appreciated.
I can't use the keyboard to scroll. I need to keep my hand on the mouse, otherwise I'd never get anything done. Since I have no problem getting Firefox to scroll one page at a time, and I'm constantly jumping between 3 browsers, it would be nice to be able to scroll a full page at a time in Safari, just like I can in Firefox. Thanks.
-
Is there any way to get the files from other computer ?
Hai all,
I have 2 computers connected. I know the IP address of other computer. Is there any way to get the files from other computer. (for e.g. I want to get the files from specific folder. In Java netwroking is it possible? (Any programs)
regards,
NamancBro Take it easy.
Think you need to send a Image file named ("abc.gif")
now develop a server using ServerSocket and connect it in local IP and any PORT
For example i think ur server is connected in "localhost" and 9000 port.
Now make ur server educated using some commands.
For example:
FileName: <File Name String>
[Means new file is sending by connected client]
FileSize: <File size long or int value>
[ So that ur server can determind about the total length of sender file]
DataModeOpen
[Now your client will send its image data, this command means your client software is sending data]
fjadlkfjaofaijojfwoeiurfodkjflsajlfksa
l23j4lj23lkjlasjfoq23j4rokjelfkjasldkf
2o3j4lk2j3ljslakdjf2l3j4 l23kjlk23k4j
DataModeClose
[Means file sending finished]
Close
[Means your client connection is closed]
Now develop a client supporting this command.
For example(Server):
String getFileName=null;
long getFileSize=0;
public handleCommand(String getCmd) {
if(getCmd.startsWith("FileName")) {
String[] splitData=getCmd.split(":");
this.getFileName= splitData[1];
outPutStream.writeBytes("+OK");
} else if(getCmd.startsWith("FileSize")) {
String[] splitData=getCmd.split(":");
this.getFileSize=Long.parseLong(splitData[1]);
outPutStream.writeBytes("+OK");
} else if(getCmd.startsWith("DataModeOpen")) {
//data mode open so receive data
receiveData();
outPutStream.writeBytes("+OK");
} else if(getCmd.startsWith("DataModeClose")) {
//close client socket
getClientSocket.close();
}For client:
DataInputStream dataIn=null;
BufferedOutputStream bout=null;
public sendFile(bytes[] getBytes) {
//if ok found then do other or show error message
if(sendCmd("FileName:"+getFileName)) {
if(sendCmd("FileSize:"+getFileSize)) {
if(sendCmd("DataModeOpen")) {
bout.write(getBytes);
} else {
showError(3);
} else {
showError(2);
} else {
showError(1);
}i think it will help u -
I have downloaded a Audio Book from Itunes Store, but rencently i have had to reinstall windows, is there any way to re-download the audio book from Itunes, i know that the audio books are one time downloads, but is there any way to get the audio book back as i have already paid for it once and i would not like to pay for it twice.
If you haven't got a backup copy and if it's still in the store then you can try contacting iTunes support and see if they will grant you a re-download (there is no guarantee that they will) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page
-
is there any way to get the server app other than through the app store. The system that I need it on are not connected to the internet.
We run a closed-loop network of apple systems and I tipically downloaded updates on a non-apple system that was on the internet.
Any ideas?I did buy the server app, went to the app store to download it. This system I'm using for downloads is Snow Leopard 10.6.8, it shows that I can download it but only as an Install which says I need 10.8. I can't seem to find a way for it to just download as a package or .dmg file so that I can copy it to DVD/CD or flash drive.
-
Is there any way to get the canvases names on the form
i have a form in Orcle 6i
i want when the form load i get the names of the Canvases on the Form automatically
to change their visual attribute
is there any way to get the name of the canvases on the form automatically
Thanks in advanceThe amount of time to evaluate each item in a Form is a lot less than you think. You are dealing with milliseconds. Worse case scenario, you might add 1 second to your form load time.
I think Francois's suggestion is the best solution, but if this is still too much time, you might concider creating strategic When-New-Item-Instance triggers on an item in each of your canvases that would perform what you want to do.
This will most likely cause problems of its own, but it is an alternative.
Food to get the thought process flowing... :-)
Craig... -
i synced my phone that had an itunes account but no music on it to a computer and it erased all the music on that computer. is there any way to get the music back?
See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
https://discussions.apple.com/thread/2452022?start=0&tstart=0
B-rock -
Is there any way to get the query used in discoverer from backend??
Hi All,
I am new to dicoverer.
Is there any way to get the query used in discoverer from backend??
Thanks,
SachinHi,
you can view the SQL from within the discoverer menu:
in desktop: View-> SQL Inspector
in Plus: Tools-> Show SQL
The SQL in the DB tables is encrypted so it's a problem getting it from there.
You can export the workbook into SQL but it is not working for every worksheet (subquery, inline pivot tables...)
you can create a batch file to export them all using the output of this script:
select null,null,'echo off'
from dual
union all
select distinct
qs.qs_doc_name Workbook_name,
qs.qs_doc_details Worksheet_Name,
'start /wait <path>\dis51usr.exe /connect '||'&p_user_name'||'/'||'&p_password'||'@'||'&p_env'||' /apps_user /apps_responsibility "&responsibility" /opendb '||
chr(34)||qs.qs_doc_name||chr(34)||' /sheet "'||qs.qs_doc_details||'"'||' /export SQL "C:\Export Discoverer SQL\'||qs.qs_doc_name||'-'||qs.qs_doc_details||'.sql" /batch'
from eul_us.eul5_qpp_stats qs
where qs.qs_doc_name is not null
--order by 1,2
union all
select null,null,'echo off'
from dual
union all
select null,null,'exit'
from dual -
Is there any way to get the list of Essbase and planning users in excel wi
Is there any way to get the list of Essbase and planning users in excel with last login details.
Hi,
This tool might be of some help to you, 'OlapUnderground Advanced Security Manager'. I havent used it personally but went through its features. Give it a try!
Thanks,
Junaid -
Is there any way to get the file for your site from Creative Cloud?
I lost the file for my Muse site and was wondering if there was any way to get the file from the server or from somewhere in Creative Cloud.
Thanks.Are you Mac or Windows?
-
I have license for Adobe Design Std CS6 6.0 MLP .Is there any way to get the installer for this?
Download CS6 products
Mylenium -
recently "lost" a purchased song, (Plus the accompanying artwork) from my i-tunes library, after upgrading my O.S. from windows XP to windows 7.
Is there any way to get the original song back, or, at least, re-purchase it?... I tried to do the latter, (It's still available in the itunes store) but, when I clicked on the buy link, I was informed that I had already bought it and was only given the option to, either, copy the link or send it to Facebook/Twitter
I also, inadvertently, deleted a couple of default playlists (Notably recently added) while attempting to get the song back.
Can someone out there, please, help me out. with the solution(s). (preferably step by step if possible, as I'm a bit of a Homer Simpson when it comes to this sort of thing) .. Doh!! :-(Hello, MrKite549.
Here is an article that will walk you through download any past purchases that are missing from your iTunes library.
Downloading past purchases from the iTunes Store, App Store, and iBooks Store
http://support.apple.com/kb/ht2519
Cheers,
Jason H. -
Took pictures on new ipod. Did restore - lost all current pictures. Any way to get the others back?
Had Christmas pictures of family and friends. I'll be so sad if I can't them back.You should be importing all pics taken with the iphone to your computer regularly as you would with any digital camera, most especially before any update or restore.
If you failed to do this, then they are very likely gone.
You can try restoring from backup -
My old computer that ran on Mavericks was stolen and my new computer runs on Yosemite. I don't like the new iMovie (10) on the Yosemite version. Is there any way to get the old version (9) back?
I read his question the way I answered it.
If that is wrong then he can clarify his question.
Maybe you are looking for
-
I have two itunes accounts can I merge them
I have two itunes accounts can i merge them into one?
-
Is it possible to remove the guts of a G4 AGP and put it in a G5 Case?
I really like my G4 PowerMac, but I want to see if it is possible to put a G4 PowerMac AGP parts in a G5 Case. Is it possible? Thanks for any help. I am considering doing this.
-
today,when i tried to listen music in my iphone 5 ,i noticed that my sound wasnt coming from the speakers but when i plugged earphone ,i listened the sound?? i couldnt recognize the problem with my iphone?? really need help!!
-
I notice lately that after I create certain bookmarks, they're not in the bookmarks menu when I look for them in subsequent sessions. I also notice that certain sites don't appear in the history file. For example, earlier today I visited several site
-
I have an ibook and it's running off mac osx 10.4.11 safaria
everytime i try to whatch a video via youtube ect. it freezes and skips how do i fix this without spending any money.