A new bee to Java2d

Hi I'm new to java.Can any body give me code for this algorithm:
HERE IS THE ALGORITHM FOR HISTOGRAM PROJECTIONS FOR BOTH HORIZONTAL AND VERTICAL...
1.A character image is taken as input.
2.The image is stored in a 2D array[32x32]
3.we calculate the number of pixels using vertical and horizontal projection hstograms..
4.we now calculate the vertical projection histogram using the below formulae:
sigma(j=1...32){Vj  }=sigma(i=1...32)[f(i,j)]
here n this we keep j constant and keep i varyin..to find the vertical projection...
BLACK PIXEL OR THE OBJECCT IS TAKEN AS EITHER 1 OR 255
WHITE PIXEL OR BACKGROUND IS TAKEN AS 0
5.After calculating tha above we now calculate the horizontal projection histogram using the below formulae:
sigma(i=1...32){Hj  }=sigma(j=1...32)[f(i,j)]
here n this we keep i constant and keep j varyin..to find the horizontal projection...
6.If the pixel is dark then increement the count or if the pixel is white then repeat the for loop...
7.The count values of each individual horizontal and vertical are now stored in a file...

Can any body give me codeUm, this is a forum, not a code factory.
[_How to ask questions the smart way_|http://catb.org/~esr/faqs/smart-questions.html]
db

Similar Messages

  • Hi i am jad anan a new bee i want TO REVIEW my app id but with no creidit

    hi i am jad anan a new bee i want TO REVIEW my app id but with no creidit card help plz

    Follow the instruction here to create a NEW account w/o a credit card. Follow them carefully.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

  • New bee in JMS

    Dear ALL,
    I am new bee in this area.
    Pls. how and from where can I download api and tuts.
    thanks
    Dukkar Lee

    The JMS specification, tutorial, and a list of vendors can be found at
    http://java.sun.com/products/jms
    Enjoy!

  • New Bee Starter Guidance needed

    Hi All,
    I am a new bee in Business Intelligence.I want to study micro-strategy or OBIEE .Please let me know what are the pre-requites .From where should i start with .I know SQL.What should i do next.Which forum will be helpful. Where can i find study material.
    I would really appreciate if anyone can provide me info as much as they can.
    You can even email me at [email protected] / [email protected]
    Every bit of info will be helpful for me.
    Thanks in Advance.
    -Mona

    Hi,
    Below are the topics to learn Oracle Business Intelligence Enterprise.
    I. Administrator.
    OBIEE and BI Server Architecture.
    Data warehouse fundamentals.
    Repository basics, structure, features, and functions - Using BI Admin tool.
    Building a Physical Layer (Data sources, connection pool, tables, Keys, Aliases and opaque views).
    Best Practices to follow while building a Physical Repository.
    Building a Business Model (Logical Table, Column, Sources).
    Building a time dimension hierarchy and other dimensions.
    Defining logical models and building measures.
    Learning the Business Model properties.
    Building the presentation layer in Repository.
    Create Presentation layer objects and setting up appropriate properties.
    Testing and validating a repository.
    Deploying the repository to the BI Server.
    II. Answers.
    Introduction to presentation services - Answers, Dashboards and Delivers.
    Creating reports, filters, formulas, prompts in Answers.
    Exploring Charts and graphs in Answers.
    Creating multiple views of the same report.
    Creating pivot tables and other views.
    Dashboard basics and exploring dashboard editor.
    III. Security - Administrator
    Introduction to Security in BI Admin tool and presentation server Administration.
    Creating Users and Groups. Permissions for users and groups.
    Setting up different connection pools, Query limits and timing restrictions.
    Variables – Repository, Session and Presentation Variables
    Advanced concepts in presentation server.
    Using variables during design and developments.
    Reference:
    See the below thread and Oracle Site are more helpful for you.
    Re: OIEE Training.
    http://www.oracle.com/technetwork/middleware/bi-enterprise-edition/tutorials/index.html
    And We have the document library for 11g, try the below.
    http://download.oracle.com/docs/cd/E14571_01/bi.htm
    Thanks,
    Balaa...

  • New bee looking for applescript help with text edit app

    I have a huge text files (20+) , I want to find a list of words like weather, farmers, ploughing. I want to find these words one at a time, as my text file is 250+ Mb in size.
    I want applescript to count the how many times each word appears in the text.
    Paste that occurrence of word into an spreadsheet file in a row named after text file , and in a column named weather, farmers, ploughing.
    Please help.
    Thanks much.
    CF
    PS so far I can open the text files with applescript, that is about the extent of my ability in programing.
    Message was edited by: coldfusions onco

    For a file of that size, you would need to use some shell utilities to get decent performance. To count words, the following script breaks up the text into words, then counts the number of times the specified word is found (a dictionary file is used as an example, so the match is equivalent to 'contains'):
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set theFile to "/usr/share/dict/web2" -- a 2.5MB list of words
    set someWords to {¬
    {theWord:"weather", theCount:0}, ¬
    {theWord:"farmers", theCount:0}, ¬
    {theWord:"ploughing", theCount:0}}
    repeat with anItem in someWords
    set aWord to quoted form of theWord of anItem
    try -- break up into individual words, then search and count
    set theCount of anItem to (do shell script "tr -cs '[:alpha:]' " & quoted form of linefeed & " < " & theFile & " | grep -ic " & aWord) as integer
    end try
    end repeat
    someWords
    </pre>
    Is this related to your Automator post?

  • New bee - accessing CIS from java

    Hi ,
    On the same line. I want to access the CIS from Java. Can you guide me on how I can implement this . Both from a standalone java program and from a web layer ?
    I have installed content server 10gR3. I want to acess this server from Java.
    Any help is appreciated.

    I think that if you create a interface in java and a class in javafx that implements that interface you can then pass that class to java. For instance:
    Java:
    public interface EventReceiver {
        public void receive(String event);
    // Then your java class that generates the events
    public class EventGenerator {
        private List<EventReceiver> receivers = new LinkedList<EventReceiver>();
        public void registerEventReceiver(EventReceiver er) {
            receiver.add(er);
        public void unregisterEventReceiver(EventReceiver er) {
            receiver.remove(er);
         *  Add code that calls EventReceiver.receive(String) method for each element in the receiver list
         *  when the panel is touched.
    }and in the JavaFX code:
    public class JavaFXEventReceiver extends EventReceiver {
        public override function receive(String event) {
            // Do UI updates...
    }A little more indepth version can be found here:
    http://www.compare-review-information.com/pure-java-code-to-call-javafx-class/
    You might run into some problems though pertaining to threading...but there are workarounds for that aswell :)
    - Emil H

  • New bee question - no memoryleak dector in jrockit 1.4.2_10 mem console?

    Hi,
    Our company runs jrockit java version "1.4.2_10"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03)
    BEA JRockit(R) (build R26.3.0-32_CR283061-63465-1.4.2_10-20060620-1811-win-ia32, )
    "memorylead detector" tab was not available in Management Console, started from [jrockit home]/bin/console commandline.
    Any idea?
    Thanks in advance.

    Here is complete capture of exception information:
    =========================================
    from running Weblogic 8.1 sp6 instance:
    [JRockit] New Management Server connection from 127.0.0.1
    [JRockit] Timeout while handshaking with Management Client.
    [JRockit] Management Server connection: Handshaking failed!
    [JRockit] Management Server connection closed.
    =========================================
    from memleak client GUI error details:
    java.io.EOFException
         at java.io.DataInputStream.readInt(DataInputStream.java:448)
         at com.jrockit.memleak.comm.CommunicationChannel$ReceiveThread.readResponse(CommunicationChannel.java:61)
         at com.jrockit.memleak.comm.CommunicationChannel$ReceiveThread.run(CommunicationChannel.java:55)
    ==========================================
    from the command promot that started memleak.exe
    java.net.SocketException: socket write error: Connection aborted by peer
    at jrockit.net.SocketNativeIO.writeBytesPinned(I[BII)V(Native Method)
            at jrockit.net.SocketNativeIO.socketWrite(Ljava.io.FileDescriptor;[BII)V
    (Unknown Source)
            at java.net.SocketOutputStream.socketWrite0(Ljava.io.FileDescriptor;[BII
    )V(SocketOutputStream.java:???)
            at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
            at java.net.SocketOutputStream.write(SocketOutputStream.java:115)
            at java.io.DataOutputStream.writeInt(I)V(Unknown Source)
            at com.jrockit.memleak.comm.CommunicationChannel$SendThread.sendRequest(
    CommunicationChannel.java:163)
            at com.jrockit.memleak.comm.CommunicationChannel$SendThread.run(Communic
    ationChannel.java:129)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • New Bee, Help File Adapter

    Hi ,
       I am new to XI , I have a basic question on file adapter.
        I have configured a file adapter to pick a file with name abc.txt and delete it. Assumes my total scenario takes 30 min to complete. If i get another file in the source folder after 5 min. Does XI process the second file also parallel. Or does it finish first file and then process the second file?
    Regards
    Monika Dietz

    Hi,
    >>>>Or does it finish first file and then process the second file?
    the file adapter will pick the file as soon as possible
    from the folder but you can set quality of service
    EOIO so it will wait until the first one will finish
    (and other parameters in the integration eigine
    so your flow will be processed by one queue only)
    but basically it will be processed in paralel
    (with standard config)
    reference:
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
    Regards,
    michal

  • Java new bee : Help Java 2D

    I want to develop an application which includes functionalities such as 1) Writing on the canvas 2) when the written text /scribble is selected by means of drawing a box around it, a new image is created on an other canvas. The image created or appeared could be from an image library.
    Please give me some fundamentals to start with. If a source code provided, I am greatful.
    Please help me.
    Ale

    http://www.java2s.com/ExampleCode/CatalogExampleCode.htm

  • New bee want to buzz in to the sony minds of creation

    Hi I'm new or newbie I may say I'm wanting to post comment and just not knowing how I love this site and I have a creative mind myself any ways I was on Sony web site trying to get a email so I could email my personal look for a camcorder well couldn't find the I knw I could of search web but I ended up here and I'm amuse by all this put to together I love it we or the world should b or think more like these fascinating people ( I'm not a great speller but this is what the auto correct put lol) any e ways to make long story short I am looking for a camcorder w/ projector but need a light to record night time I would like it to b built in the camcorder too not to have extra parts to connect to so that is my question if u can comment me back I would greatly appreciate very much or email me @ [email protected] bcuz I'm new at all this community site I'm having trouble trying to post a comment to a person(s) thanks again sony I love your product(s) And rate them #1 in my book so happy posting everyone I love the great minds become greater when put together!!!!! AAG

    Hello Gurl_ya,
    You posted your question in the tablet forum; but that's okay.
    If you are looking for a projector camera, some models do have NightShot® Infrared System for recording in the dark.  Just be sure the check the product specifications for that feature.  
    I think the HDR-PJ790V & HDR-PJ230/B models have this feature.
    To shop for projector camcorders you can visit the stony store here.

  • I recently received a mac book pro as a gift and wanted to pick up the book about it at costco however there is a book about the new mavericks system  ?so as a new bee to mac which book would help me the most?

    Hi there
    I recently received a Macbook Pro as a gift .Im not too great with computers but I'm planning to attend workshops.
    A frend recommended I pick up the book at Costco about the Pro .It gives advice on shortcuts and how to do almost anything on your Mac.
    My question is should I purchase this item or the book specifically on the new operating system Mavericks ...as I was going to update my computer to this system.
    Any input is appreciated
    Newbee60

    The Book should Match the Operating System of Your Mac.
    newbee60 wrote:
    I recently received a Macbook Pro as a gift .Im not too great with computers but I'm planning to attend workshops.
    To get you started see  >  Mac Basics for New Users
    Plus... see... Find Out How (Video)  >  http://www.apple.com/findouthow/mac/

  • New Bee to Aqualogic 2.0

    Dear Reader ,
    I have the latest version of Aqualogic Trial version downloaded from Bea's Website.One of my client company is in need of a Webservices Management Product , they have around 50 CGI services.
    Iam trying to create a Business Service with a wsdl , and right now didn't set any configurations.how am i suppose to test the webservice.
    when i tried to get the wsdl from the following after deployment , it showed me pagenot found
    http:<host>:<port>/service-name?wsdl
    This works only for the services which are there already , could you please help me with the right directions.
    Thanks in advance
    K.MariaDevisaJhones..,
    :-)

    Hi there,
    There is not a complete and detailed documentation available yet and so is best practices. It is a very new product. In short, you have to register your WSDL in ALSB, and then you have to create proxy and business services based on this WSDL. Please read through the tutorial and other related docs and then you would have good idea how this thing is going to work....Thanks,
    Gary Hassan

  • Plz help the scenario..i am a new bee to obiee

    i have a scenario i have a dashboard which contains 2 objects
    1)dashboard prompt( which contains year values )
    2) report (year and sales as columns)
    what my question is when i select a year in prompt how i want the result is i want CURRENT YEAR DATA AND PREVIOUS YEAR data..
    For this i create a presentaion variable and capture the value in dashboard prompt....where i struck is how to write the logic ...any help please

    Try in this
    For Current Year
    SELECT saw_0 FROM ((SELECT Year(CURRENT_DATE) saw_0 FROM "SampleSales")
    For Previous Year
    (SELECT Year(CURRENT_DATE)-1 saw_0 FROM "SampleSales")) t1 ORDER BY saw_0
    If you want get the current year and previous year in prompts you can create a variable and insert this logic
    SELECT saw_0 FROM ((SELECT Year(CURRENT_DATE) saw_0 FROM "SampleSales") UNION (SELECT Year(CURRENT_DATE)-1 saw_0 FROM "SampleSales")) t1 ORDER BY saw_0
    Mark if helps.
    Thanks,

  • Need Help !!! New Bee !!!

    Hi All,
    Im a brand newbee to BI publisher. I have a requirement of customizing "Contract Terms Layout" . I downloaded the .xsl(OKCTERMS_en.xsl) file from xml publisher responsibility.
    My understanding is that .xsl could be edited by BI publisher. But when i try to open the .xsl file, its only xsl code, i donot see the template format i would see in a rtf file.
    I would like to know how can i convert the .xsl to template file so as to make changes.
    Or is there any other way to edit the template.

    Not sure exactly what you are asking here but here goes:
    Anytime a contract PA is approved there is the option to email print or fax, if selected these cause the XML to be generated and the relevent communication (PDF) is generated from that XML. The PDF is stored in the database against that PA. You don't get to see the XML unless you turn on debugging as follows:
    Enabling XML Publisher Debug Logging
    The information here is taken from important Note 364547.1 Troubleshooting Oracle XML Publisher for Oracle Applications 11i; however, is briefly given again for use by Procurement System Administrators. Depending how the PO report is being generated (using concurrent manager or not) use the following steps to generate the XML Publisher Engine log output to analyze the problem in more depth.
    i) For Online Report Generation (Note: this is also the only way to get the PO XML data file, as it is only stored as a temporary file).
    Connect to iAS/Apache server as applmgr
    Create directory $XDO_TOP/temp for log storage
    Go to $OA_JRE_TOP/jre/lib/ and create file xdodebug.cfg with the following two lines:
    LogLevel=STATEMENT
    LogDir=[Full path of XDO_TOP]/temp
    Restart iAS/Apache
    Reproduce the issue
    In $XDO_TOP/temp directory, the following files should now be available:
    xdo.log = XML Publisher Engine log
    [filename] .xsl = XSL-FO template files used
    [filename].xml = data files used
    [filename].fo = temporary file from FO engine
    [filename].out = output file (not shown if is complete failure)
    You can also run PO Output for Communication to print your PA. You can create a custom template, load it up and link it to the data definition, you have seen, to allow you to print your own customised PA. There is also some Purchasing setup required to link the custom template to the document type for the PA.
    Check out the other purchasing threads on this forum for other good info to help you with this. Both Standard PO document and Contract PA are developed along similar lines although XML can vary slightly.
    Hope this helps.
    Cheers,
    Dave

  • New BEE in the Mobile Development Farm

    Hi Experts,
    If Someone can provide from where to start SAP Mobile development then it will be great help.
    Viral Shah
    Edited by: ViraldShah on Oct 24, 2011 7:40 PM

    Hi Virald,
    Mobile development within the SAP product suite is a very broad term.
    Have a look at the current strategy
    http://www.sap-tv.com/6449
    See where you believe you could fit in, as well as which would work best for your client / organisation to commence your learning.
    A good place to start is on SDN itself:
    http://www.sdn.sap.com/irj/sdn/mobile
    Additionally, there are great training videos on youtube:
    http://www.youtube.com/user/SUPDeveloperProgram
    Welcome to mobile sector within the SAP developer community.
    Regards,
    amit

Maybe you are looking for