Jump to content
You must now use your email address to sign in [click for more info] ×

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Welcome to the Serif Affinity forums.

  1. Use File > Open to open one image.
  2. 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.

-- 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

@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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.