Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i'm working on image encryption at the initial stage of my research project.i'm doing coding on java but all my seniors and teachers asked me to work with c language.i want to ask that what kind of problem i would face on my later stage if i continue with java.

What I have tried:

i have written some programs to calculate the pixel value in java but it is taking too much time to print the pixel value of an image, approx. 30 seconds. would it take less time if i code in c language for the same ?
Posted
Updated 20-Dec-16 21:08pm
Comments
[no name] 21-Dec-16 3:08am    
Not a simple answer possible here. If this is something your teachers suggested then why did they not give the reason?

The only problem that you may face is not being able to find a decent Java based library for image processing. But even Java has support for most issues these days. It sounds like you are being asked to use C for other reasons.
 
Share this answer
 
Comments
ritu shaktawat 22-Dec-16 2:52am    
Thank you sir for your nice suggestion. It will help me out. May i have your email address please, so i can communicate directly regarding my research issues on image encryption in c language as you are working on computer programming languages.
Richard MacCutchan 22-Dec-16 8:19am    
Sorry, no, I do not do private consultancy. I like working in CodeProject because it is an open forum and allows me to keep up to date with technology and learn new things. But mostly because I can do it in my own time, and at my own speed.
The performance of (good) C code is usually far better than the one of (good) Java code.
This could be a reason.
Anyway you could write the bulk of your application using Java and the performance critical parts using C. They 'gently' communicate via JNI.
 
Share this answer
 
Comments
ritu shaktawat 22-Dec-16 2:44am    
Thank you sir for your nice suggestion. It will help me out. May i have your email address please, so i can communicate directly regarding my research issues on image encryption in c language.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900