alialjabri Posted January 5, 2021 Share Posted January 5, 2021 Hello, I am a new user of Affinity and there is a function that I cannot figure even after reading and trying a lot. So I plan on using Affinity for image analysis on images that I obtained from a microscope. I have pictures from two groups. One group that shows all the cells in the tissue, and the other showing a specific type of cells. I am now interested in an image where only the common area between the pictures survives, I think its called masking. The purpose is to see that the cells in group two has also been stained in group one. Please let me know if I need to explain any more. How do I do that? I have understood that it has to do with the layer function, but I cannot put the two images on top of each other. BR, Ali Al-Jabri Quote Link to comment Share on other sites More sharing options...
alialjabri Posted January 5, 2021 Author Share Posted January 5, 2021 Both pictures are white and black (binary) and what I want is a third image with only the overlap between the white areas. Quote Link to comment Share on other sites More sharing options...
lepr Posted January 5, 2021 Share Posted January 5, 2021 15 minutes ago, alialjabri said: Both pictures are white and black (binary) and what I want is a third image with only the overlap between the white areas. If you set the upper layer's blend mode to Multiply then you will get white only where both layers are white, and everywhere else will be black. harrym 1 Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted January 5, 2021 Share Posted January 5, 2021 Welcome to the Serif Affinity forums. Use File > Open to open one image. Use File > Place to put the second image on top of the first image. Or, in Affinity Photo, you could use File > New Stack to open both in one operation. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. iPad: iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1 Link to comment Share on other sites More sharing options...
alialjabri Posted January 6, 2021 Author Share Posted January 6, 2021 Thank you very much! Appreciated. Quote Link to comment Share on other sites More sharing options...
kirkt Posted January 6, 2021 Share Posted January 6, 2021 @alialjabri: consider using ImageJ or any of its variations (Fiji, for example). Fiji: https://fiji.sc It is made for image analysis and has been around for a long time. It is free, open-source, well-maintained and cross-platform. It also has a macro language and plug-in architecture which will permit you to automate and explicitly define the math and procedural operations you want to perform. Chances are someone has already written a publicly-available macro or plug-in to do what you need, beyond simple blend mode layering. Kirk Quote Link to comment Share on other sites More sharing options...
alialjabri Posted January 6, 2021 Author Share Posted January 6, 2021 Thank you for your advice, Kirk. I already use ImageJ for the analysis of the rest of the images. It is just that ImageJ does not have a function where you can see the overlap between two images. Thats why I use a photoshop software to create this image, and then take it back to ImageJ to complete the analysis. Ali Quote Link to comment Share on other sites More sharing options...
kirkt Posted January 6, 2021 Share Posted January 6, 2021 I am pretty sure it is simple math to find the intersection between two images - you can use a median filter to find or eliminate the common elements, for example. Anyway, there are always several ways to accomplish a task, so whichever you choose will hopefully fit your workflow. Plus, you get to try AP, which is a little different than PS, but in many ways a more modern image processing experience. best, Kirk Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.