简体   繁体   English

使用 ImageJ 从合并的堆栈创建新的图像堆栈

[英]Create new image stack from merged stack with ImageJ

I have a merged image stack (from two composite stacks), with a screenshot of a slice shown here .我有一个合并的图像堆栈(来自两个复合堆栈),此处显示了一个切片的屏幕截图 This was done in ImageJ.这是在 ImageJ 中完成的。 Essentially, the water (blue) was injected into a gas diffusion layer (ie, a porous material made primarily of carbon fiber).本质上,水(蓝色)被注入气体扩散层(即主要由碳纤维制成的多孔材料)。 The black regions are air.黑色区域是空气。 How can I take that merged stack and create a new image stack of only the black region in ImageJ?如何获取合并的堆栈并在 ImageJ 中创建一个仅包含黑色区域的新图像堆栈?

To put things in context, I'm eventually going to take the three different stacks (gas diffusion layer, water, air), create meshes from them, and find where the three all intersect (ie, the triple-phase contact line).为了把事情放在上下文中,我最终将采用三个不同的堆栈(气体扩散层、水、空气),从它们创建网格,并找到三个相交的位置(即三相接触线)。 After some smoothing, I'll then calculate vertex normals along all the contact lines to calculate average contact angles of water in the gas diffusion layer.经过一些平滑后,我将计算沿所有接触线的顶点法线,以计算气体扩散层中水的平均接触角。

So turns out my issue was how I combined the two images in the first place.所以原来我的问题是我如何首先组合这两个图像。 Originally I used the Image > Color > Merge Channels option.最初我使用图像 > 颜色 > 合并通道选项。 But it was the fact that the merged stack now had two colors (not including the black background that I was trying to extract).但事实上,合并的堆栈现在有两个 colors(不包括我试图提取的黑色背景)。

I took the two original stacks (water and GDL) and made them black and white.我拿了两个原始的堆栈(水和 GDL)并把它们做成黑白的。 I then used the Process > Image Calculator feature to add the two stacks.然后我使用 Process > Image Calculator 功能添加两个堆栈。 I processed all the images.我处理了所有的图像。

Because I wanted the air (ie the background) I inverted the stack so that the air became white and the GDL and water became black.因为我想要空气(即背景),所以我将堆栈倒置,使空气变成白色,而 GDL 和水变成黑色。 Then I was able to save this stack and eventually create a.stl file via ImageJ's 3D Viewer plugin (Plugins > 3D Viewer).然后我能够保存此堆栈并最终通过 ImageJ 的 3D 查看器插件(插件 > 3D 查看器)创建一个.stl 文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM