为什么C比java更适合处理图像加密? [英] Why C is preferred than java to work on image encryption ?

查看:78
本文介绍了为什么C比java更适合处理图像加密?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究项目的初始阶段进行图像加密。我正在编写java编码,但我所有的老人和老师都让我使用c语言。我想要如果我继续使用java,请问我将在后期遇到什么样的问题。



我尝试了什么:



i编写了一些程序来计算java中的像素值,但是花费太多时间来打印图像的像素值,大约。 30秒。如果我使用c语言编写同样的代码会花费更少的时间吗?

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 ?

推荐答案

你可能遇到的唯一问题是无法找到一个像样的基于Java的库用于图像处理。但即便是Java现在也支持大多数问题。这听起来像是因为其他原因而被要求使用C.
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.


(好) C 代码的性能通常要好得多比(好) Java 代码。

这可能是一个原因。
无论如何你可以写大部分应用程序使用 Java 以及使用 C 的性能关键部分。他们轻轻地通过 JNI 进行沟通。
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.


这篇关于为什么C比java更适合处理图像加密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆