项目作者: for-tokyo

项目描述 :
write tiff for imagej
高级语言: C++
项目地址: git://github.com/for-tokyo/tiff_imagej.git
创建时间: 2018-11-11T13:36:00Z
项目社区:https://github.com/for-tokyo/tiff_imagej

开源协议:The Unlicense

下载


tiff_imagej

日本語REAME

write a tiff file for imagej.

This source code is licensed under the Unlicens.

You can use all or part of this source code without any constraints.

Dependency

  • libtiff

Write image data as tiff file

Use the following files.

  • tiff_imagej.cpp
  • tiff_imagej.h

write_tiff(const char file, const void data, int width, int height, int nChannels,
int type, int flag)

name description
file filename
data pointer of data.
Only interleaved is supported for a multi channel image.
width width of image
nChannels the number of channels
type type of image
flag to write image as color

Write cv::Mat as tiff file

Use the following files.

  • tiff_imagej.cpp
  • tiff_imagej.h
  • cv_tiff_imagej.cpp
  • cv_tiff_imagej.h

void cv_write_tiff(const char *file, const cv::Mat &img, int flag = TI_BGR)

name description
file filename
img Mat object
flag to write image as color