资源简介
这个和之前所有的csdn上现有的mexw64文件都不一样!!!!它们的jpeg_write是有问题的!!!这个是我苦寻了几天后,才在GitHub上找到的!!感谢原作者分享!!(同时附有linux版的)
用法:不用任何vs编译,matlab可直接运行mexw64文件!!!
其实我本来不想收资源分的,,但是不好设成0,就设了个最低的。。。
如果真的有需要,请联系我QQ 1036945050,我会百度网盘私发给你。
代码片段和文件信息
/*
* jpeg_read.c
*
* JPEGOBJ = JPEG_READ(FILENAME)
*
* Returns JPEGOBJ a Matlab struct containing the JPEG header information
* quantization tables and the DCT coefficients.
*
* This software is based in part on the work of the Independent JPEG Group.
* In order to compile you must first build IJG‘s JPEG Tools code library
* available at ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz.
*
* Phil Sallee 6/2003
*
* Copyright (c) 2003 The Regents of the University of California.
* All Rights Reserved.
*
* Permission to use copy modify and distribute this software and its
* documentation for educational research and non-profit purposes
* without fee and without a written agreement is hereby granted
* provided that the above copyright notice this paragraph and the
* following three paragraphs appear in all copies.
*
* Permission to incorporate this software into commercial products may
* be obtained by contacting the University of California. Contact Jo Clare
* Peterman University of California 428 Mrak Hall Davis CA 95616.
*
* This software program and documentation are copyrighted by The Regents
* of the University of California. The software program and
* documentation are supplied “as is“ without any accompanying services
* from The Regents. The Regents does not warrant that the operation of
* the program will be uninterrupted or error-free. The end-user
* understands that the program was developed for research purposes and
* is advised not to rely exclusively on the program for any reason.
*
* IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
* FOR DIRECT INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES
* INCLUDING LOST PROFITS ARISING OUT OF THE USE OF THIS SOFTWARE AND
* ITS DOCUMENTATION EVEN IF THE UNIVERSITY OF CALIFORNIA HAS BEEN
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. THE UNIVERSITY OF
* CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES INCLUDING BUT NOT
* LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN “AS IS“
* BASIS AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE
* MAINTENANCE SUPPORT UPDATES ENHANCEMENTS OR MODIFICATIONS.
*
*/
#include
#include
#include
#include
#include
#include “mex.h“
/* We need to create our own error handler so that we can override the
* default handler in case a fatal error occurs. The standard error_exit
* method calls exit() which doesn‘t clean things up properly and also
* exits Matlab. This is described in the example.c routine provided in
* the IJG‘s code library.
*/
struct my_error_mgr {
struct jpeg_error_mgr pub; /* “public“ fields */
jmp_buf setjmp_buffer; /* for return to caller */
};
/* The default output_message routine causes a seg fault in Matlab
* at least on Windows. Its generally used to emit warnings since
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 14229 2018-04-06 18:42 jpeg_read.c
文件 65536 2013-09-18 14:39 jpeg_read.dll
文件 474 2018-04-06 18:42 jpeg_read.m
文件 67072 2018-04-06 18:42 jpeg_read.mexw64
文件 12716 2018-04-07 14:14 jpeg_write.c
文件 57344 2018-04-06 18:42 jpeg_write.dll
文件 564 2018-04-06 18:42 jpeg_write.m
文件 75084 2018-04-06 18:42 jpeg_write.mexa64
文件 138752 2018-04-06 18:42 jpeg_write.mexw64
评论
共有 条评论