本文介绍了如何从MATLAB中打印出大符号表以形成十字绣图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此网站上,人们可以从图像创建针迹图.我正在尝试在MATLAB中执行此操作.我已经使用图像处理工具箱"实现了所有操作(减少颜色数量,映射到可用纱线颜色的颜色空间).我已经完成了所有这些工作,我唯一需要做的就是从MATLAB创建与这些文件类似的输出,该输出基本上显示出针迹图的每个光栅点要使用哪根纱线:

On this website, one can create stitch charts from images. I'm trying to do this in MATLAB. I have implemented everything using the Image Processing Toolbox (Reducing of number of the colors, mapping to the color space of available yarn colors). I'm done with all of this, the only thing I still need to do is to create an output similar to these files from MATLAB, which basically show which yarn to use for each raster point of the stitch chart:

体重

颜色

我的问题是如何打印带有很多非常小的字段且内部带有颜色和/或符号的表格.在这些PDF文件中,它看起来应该有点像.如何打印出这样的表格?直接来自MATLAB吗?我可以在MATLAB中创建这样的PDF文件吗?我应该以某种方式将其导出到Excel吗?

My question is how to print a table with a lot of very small fields with the color and/or symbol inside.It should look somehow like in these PDF files. How can I print out a table like this? Directly from MATLAB? Can I create a PDF file like this in MATLAB? Should I export it to Excel somehow?

推荐答案

对于您链接的彩色" PDF,它看起来像是像素化的图像.为什么不将每个字段"保存为一个像素,例如使用imwrite(I, 'filename')保存在TIF文件中?然后,您可以使用适当的缩放比例将此TIF打印为PDF,以使像素足够大.

For the "color" PDF you linked, this looks just like a pixelated image. Why don't you save each "field" as one pixel, for example in a TIF file using imwrite(I, 'filename')? You could then print this TIF into a PDF using an appropriate scaling factor to make the pixels large enough.

对于基本上包含大量符号表的"BW" PDF,通过HTML或 RTF文件格式以获取符号表,然后使用一些html2pdf或rtf2pdf转换器...

For the "BW" PDF which basically contains a large table of symbols, it would probably be easiest to go through HTML or RTF file format to get the table of symbols, and then use some html2pdf or rtf2pdf converter...

这篇关于如何从MATLAB中打印出大符号表以形成十字绣图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 03:48